pub enum Suspension {
YieldNow,
Park(ParkRequest),
}Expand description
A reason a mounted fiber returned control to its carrier.
Variants§
YieldNow
The virtual thread cooperatively yielded its turn.
Park(ParkRequest)
The virtual thread parked on a modeled wait generation.
Trait Implementations§
Source§impl Clone for Suspension
impl Clone for Suspension
Source§impl Debug for Suspension
impl Debug for Suspension
impl Eq for Suspension
Source§impl PartialEq for Suspension
impl PartialEq for Suspension
impl StructuralPartialEq for Suspension
Auto Trait Implementations§
impl Forget for Suspension
impl Freeze for Suspension
impl RefUnwindSafe for Suspension
impl Send for Suspension
impl Sync for Suspension
impl Unpin for Suspension
impl UnsafeUnpin for Suspension
impl UnwindSafe for Suspension
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