pub enum Wait<T> {
Blocked,
Ready(T),
}Expand description
What a blocking call answers.
Variants§
Blocked
The kernel parked the calling task. Leave the program counter where it is and make the same call again when the task next runs.
Ready(T)
The call completed.
Trait Implementations§
impl<T: Copy> Copy for Wait<T>
impl<T: Eq> Eq for Wait<T>
impl<T: PartialEq> StructuralPartialEq for Wait<T>
Auto Trait Implementations§
impl<T> Freeze for Wait<T>where
T: Freeze,
impl<T> RefUnwindSafe for Wait<T>where
T: RefUnwindSafe,
impl<T> Send for Wait<T>where
T: Send,
impl<T> Sync for Wait<T>where
T: Sync,
impl<T> Unpin for Wait<T>where
T: Unpin,
impl<T> UnsafeUnpin for Wait<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Wait<T>where
T: 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