#[repr(u8)]pub enum GeneratorYieldReason {
Cooperative = 0,
Preempted = 1,
}Expand description
Reasons the worker generator yields control back to the scheduler/trampoline.
Variants§
Cooperative = 0
Cooperative yield point inside the worker loop (scheduler driven).
Preempted = 1
Non-cooperative preemption triggered via signal/APC.
Implementations§
Trait Implementations§
Source§impl Clone for GeneratorYieldReason
impl Clone for GeneratorYieldReason
Source§fn clone(&self) -> GeneratorYieldReason
fn clone(&self) -> GeneratorYieldReason
Returns a duplicate of the value. Read more
1.0.0 · 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 GeneratorYieldReason
impl Debug for GeneratorYieldReason
Source§impl PartialEq for GeneratorYieldReason
impl PartialEq for GeneratorYieldReason
impl Copy for GeneratorYieldReason
impl Eq for GeneratorYieldReason
impl StructuralPartialEq for GeneratorYieldReason
Auto Trait Implementations§
impl Freeze for GeneratorYieldReason
impl RefUnwindSafe for GeneratorYieldReason
impl Send for GeneratorYieldReason
impl Sync for GeneratorYieldReason
impl Unpin for GeneratorYieldReason
impl UnwindSafe for GeneratorYieldReason
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