pub enum UringEither<T, Ext = ()> {
A(UringA<T, T, Ext>),
B(UringB<T, T, Ext>),
}
Variants§
Trait Implementations§
Source§impl<T, Ext> Uring for UringEither<T, Ext>
impl<T, Ext> Uring for UringEither<T, Ext>
type A = T
type B = T
type Ext = Ext
fn header(&self) -> &Header<Ext>
fn sender(&self) -> Queue<'_, T>
fn receiver(&self) -> Queue<'_, T>
fn ext(&self) -> &Self::Ext
Source§fn is_connected(&self) -> bool
fn is_connected(&self) -> bool
Returns
true
if the remote Uring
is not dropped.fn send(&mut self, val: Self::A) -> Result<(), Self::A>
fn send_bulk<I>(&mut self, vals: I) -> usize
fn recv(&mut self) -> Option<Self::B>
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>where
T: RefUnwindSafe,
Ext: RefUnwindSafe,
impl<T, Ext> Send for UringEither<T, Ext>
impl<T, Ext = ()> !Sync for UringEither<T, Ext>
impl<T, Ext> Unpin for UringEither<T, Ext>
impl<T, Ext> UnwindSafe for UringEither<T, Ext>where
T: RefUnwindSafe,
Ext: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more