pub enum TaskState {
Yield,
SleepFor(Micros),
WaitForMessage,
Done,
}Expand description
What a task wants after a step.
Variants§
Yield
Reschedule as soon as the scheduler comes back to it.
SleepFor(Micros)
Wake after the given number of virtual micros.
WaitForMessage
Park until a network message arrives for this node.
Done
The task is finished.
Trait Implementations§
impl Copy for TaskState
impl Eq for TaskState
impl StructuralPartialEq for TaskState
Auto Trait Implementations§
impl Freeze for TaskState
impl RefUnwindSafe for TaskState
impl Send for TaskState
impl Sync for TaskState
impl Unpin for TaskState
impl UnsafeUnpin for TaskState
impl UnwindSafe for TaskState
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