#[non_exhaustive]pub enum TerminalState {
Cancelled,
Completed,
}Available on crate feature
task-context only.Expand description
The terminal state a task had already reached, when a state transition fails.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for TerminalState
impl Clone for TerminalState
impl Copy for TerminalState
Source§impl Debug for TerminalState
impl Debug for TerminalState
Source§impl Display for TerminalState
impl Display for TerminalState
impl Eq for TerminalState
Source§impl PartialEq for TerminalState
impl PartialEq for TerminalState
impl StructuralPartialEq for TerminalState
Auto Trait Implementations§
impl Freeze for TerminalState
impl RefUnwindSafe for TerminalState
impl Send for TerminalState
impl Sync for TerminalState
impl Unpin for TerminalState
impl UnsafeUnpin for TerminalState
impl UnwindSafe for TerminalState
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