pub enum MaybeRegistered<R, F> {
Registered(R),
Fallback(F),
}Variants§
Trait Implementations§
Source§impl<R: IoBuf, F: IoBuf> IoBuf for MaybeRegistered<R, F>
impl<R: IoBuf, F: IoBuf> IoBuf for MaybeRegistered<R, F>
Source§fn stable_ptr(&self) -> *const u8
fn stable_ptr(&self) -> *const u8
Returns a stable pointer to the start of the initialized data.
Source§fn bytes_init(&self) -> usize
fn bytes_init(&self) -> usize
Number of initialized bytes, valid to read.
Source§fn bytes_total(&self) -> usize
fn bytes_total(&self) -> usize
Total capacity, including uninitialized memory.
This is what gets passed to the kernel for reads.
Auto Trait Implementations§
impl<R, F> Freeze for MaybeRegistered<R, F>
impl<R, F> RefUnwindSafe for MaybeRegistered<R, F>where
R: RefUnwindSafe,
F: RefUnwindSafe,
impl<R, F> Send for MaybeRegistered<R, F>
impl<R, F> Sync for MaybeRegistered<R, F>
impl<R, F> Unpin for MaybeRegistered<R, F>
impl<R, F> UnsafeUnpin for MaybeRegistered<R, F>where
R: UnsafeUnpin,
F: UnsafeUnpin,
impl<R, F> UnwindSafe for MaybeRegistered<R, F>where
R: UnwindSafe,
F: UnwindSafe,
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