pub enum BlockOutcome {
Ready,
Blocked,
AlreadyPast,
NoCurrentTask,
}Expand description
What a blocking call did.
Variants§
Ready
The caller’s own condition was already satisfied, so nothing was blocked. The caller keeps the CPU and should carry on (this is what makes a wake-up impossible to lose).
Blocked
The caller is switched away and will resume when woken or its deadline passes.
AlreadyPast
The deadline had already passed, so nothing was waited for. Not an error.
NoCurrentTask
No current task: called from interrupt or idle context, where there is nothing to
switch away from. The wait did not happen; counted in stats().blocks_without_current.
Trait Implementations§
Source§impl Clone for BlockOutcome
impl Clone for BlockOutcome
impl Copy for BlockOutcome
Source§impl Debug for BlockOutcome
impl Debug for BlockOutcome
impl Eq for BlockOutcome
Source§impl PartialEq for BlockOutcome
impl PartialEq for BlockOutcome
impl StructuralPartialEq for BlockOutcome
Auto Trait Implementations§
impl Forget for BlockOutcome
impl Freeze for BlockOutcome
impl Move for BlockOutcome
impl RefUnwindSafe for BlockOutcome
impl Send for BlockOutcome
impl Sync for BlockOutcome
impl Unpin for BlockOutcome
impl UnsafeUnpin for BlockOutcome
impl UnwindSafe for BlockOutcome
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