Struct UringB

Source
pub struct UringB<A, B, Ext = ()>(/* private fields */);

Implementations§

Source§

impl<A, B, Ext> UringB<A, B, Ext>

Source

pub fn into_raw(self) -> RawUring<A, B, Ext>

Source

pub fn dispose_raw(self) -> Result<RawUring<A, B, Ext>, DisposeError>

Drops this Uring and all enqueued entries.

It does nothing and returns an error if self is still connected. Otherwise, the returned RawUring is safe to deallocate without synchronization.

Source

pub unsafe fn from_raw(uring: RawUring<A, B, Ext>) -> Self

§Safety

The specified RawUring must be a valid value returned from into_raw.

Trait Implementations§

Source§

impl<A, B, Ext> Drop for UringB<A, B, Ext>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl<A, B, Ext> Uring for UringB<A, B, Ext>

Source§

type A = B

Source§

type B = A

Source§

type Ext = Ext

Source§

fn header(&self) -> &Header<Ext>

Source§

fn sender(&self) -> Queue<'_, Self::A>

Source§

fn receiver(&self) -> Queue<'_, Self::B>

Source§

fn ext(&self) -> &Self::Ext
where Self::Ext: Sync,

Source§

fn is_connected(&self) -> bool

Returns true if the remote Uring is not dropped.
Source§

fn send(&mut self, val: Self::A) -> Result<(), Self::A>

Source§

fn send_bulk<I>(&mut self, vals: I) -> usize
where I: Iterator<Item = Self::A>,

Source§

fn recv(&mut self) -> Option<Self::B>

Source§

fn recv_bulk(&mut self) -> Drain<'_, Self::B>

Source§

impl<A: Send, B: Send, Ext: Send> Send for UringB<A, B, Ext>

Auto Trait Implementations§

§

impl<A, B, Ext> Freeze for UringB<A, B, Ext>

§

impl<A, B, Ext> RefUnwindSafe for UringB<A, B, Ext>

§

impl<A, B, Ext = ()> !Sync for UringB<A, B, Ext>

§

impl<A, B, Ext> Unpin for UringB<A, B, Ext>

§

impl<A, B, Ext> UnwindSafe for UringB<A, B, Ext>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.