pub enum CoroutineState {
Unresumed,
Returned,
Panicked,
Suspend(u32),
}Expand description
State of a coroutine.
Variants§
Unresumed
The coroutine has not started running.
Returned
The coroutine has finished running.
Panicked
The coroutine has panicked.
Suspend(u32)
The coroutine is suspended at a specific suspension point.
The suspension points are consecutively numbered starting from 0.
Trait Implementations§
Source§impl Clone for CoroutineState
impl Clone for CoroutineState
Source§fn clone(&self) -> CoroutineState
fn clone(&self) -> CoroutineState
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 CoroutineState
impl Debug for CoroutineState
Source§impl PartialEq for CoroutineState
impl PartialEq for CoroutineState
impl Copy for CoroutineState
impl Eq for CoroutineState
impl StructuralPartialEq for CoroutineState
Auto Trait Implementations§
impl Freeze for CoroutineState
impl RefUnwindSafe for CoroutineState
impl Send for CoroutineState
impl Sync for CoroutineState
impl Unpin for CoroutineState
impl UnwindSafe for CoroutineState
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