pub enum CancelResult {
Cancelled,
AlreadyRunning,
AlreadyFinished,
Unsupported,
}Expand description
Result of an attempt to cancel a tracked task.
Variants§
Cancelled
The task was cancelled before it started.
AlreadyRunning
The task had already started and cannot be cancelled cooperatively.
AlreadyFinished
The task had already reached a terminal state.
Unsupported
The backing service or handle does not support active cancellation.
Trait Implementations§
Source§impl Clone for CancelResult
impl Clone for CancelResult
Source§fn clone(&self) -> CancelResult
fn clone(&self) -> CancelResult
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 moreSource§impl Debug for CancelResult
impl Debug for CancelResult
Source§impl PartialEq for CancelResult
impl PartialEq for CancelResult
Source§fn eq(&self, other: &CancelResult) -> bool
fn eq(&self, other: &CancelResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CancelResult
impl Eq for CancelResult
impl StructuralPartialEq for CancelResult
Auto Trait Implementations§
impl Freeze for CancelResult
impl RefUnwindSafe for CancelResult
impl Send for CancelResult
impl Sync for CancelResult
impl Unpin for CancelResult
impl UnsafeUnpin for CancelResult
impl UnwindSafe for CancelResult
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