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§fn clone(&self) -> Suspension
fn clone(&self) -> Suspension
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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 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