pub enum CoroutineStatus {
Running,
Suspended,
Done,
}Expand description
Lifecycle state of a Coroutine.
Variants§
Running
The coroutine handler is currently executing.
Suspended
The coroutine has yielded and is waiting to be resumed.
Done
The coroutine has finished, errored, or been cancelled.
Implementations§
Trait Implementations§
Source§impl Clone for CoroutineStatus
impl Clone for CoroutineStatus
Source§fn clone(&self) -> CoroutineStatus
fn clone(&self) -> CoroutineStatus
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 moreimpl Copy for CoroutineStatus
Source§impl Debug for CoroutineStatus
impl Debug for CoroutineStatus
impl Eq for CoroutineStatus
Source§impl PartialEq for CoroutineStatus
impl PartialEq for CoroutineStatus
Source§fn eq(&self, other: &CoroutineStatus) -> bool
fn eq(&self, other: &CoroutineStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CoroutineStatus
Auto Trait Implementations§
impl Freeze for CoroutineStatus
impl RefUnwindSafe for CoroutineStatus
impl Send for CoroutineStatus
impl Sync for CoroutineStatus
impl Unpin for CoroutineStatus
impl UnsafeUnpin for CoroutineStatus
impl UnwindSafe for CoroutineStatus
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