pub enum PreemptionExit {
Nested,
Enabled,
Pending(PendingPreemption),
}Expand description
Result of finishing one preemption exclusion.
Variants§
Nested
A nested depth was consumed; preemption remains excluded.
Enabled
The final depth was consumed and execution is preemptible.
Pending(PendingPreemption)
The final depth remains reserved until an external safe point claims it.
Auto Trait Implementations§
impl !Send for PreemptionExit
impl !Sync for PreemptionExit
impl Freeze for PreemptionExit
impl RefUnwindSafe for PreemptionExit
impl Unpin for PreemptionExit
impl UnsafeUnpin for PreemptionExit
impl UnwindSafe for PreemptionExit
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