Enum UringEither

Source
pub enum UringEither<T, Ext = ()> {
    A(UringA<T, T, Ext>),
    B(UringB<T, T, Ext>),
}

Variants§

§

A(UringA<T, T, Ext>)

§

B(UringB<T, T, Ext>)

Trait Implementations§

Source§

impl<T, Ext> Uring for UringEither<T, Ext>

Source§

type A = T

Source§

type B = T

Source§

type Ext = Ext

Source§

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

Source§

fn sender(&self) -> Queue<'_, T>

Source§

fn receiver(&self) -> Queue<'_, T>

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>

Auto Trait Implementations§

§

impl<T, Ext> Freeze for UringEither<T, Ext>

§

impl<T, Ext> RefUnwindSafe for UringEither<T, Ext>

§

impl<T, Ext> Send for UringEither<T, Ext>
where T: Send, Ext: Send,

§

impl<T, Ext = ()> !Sync for UringEither<T, Ext>

§

impl<T, Ext> Unpin for UringEither<T, Ext>

§

impl<T, Ext> UnwindSafe for UringEither<T, 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.