pub enum CancelReason {
Timeout = 0,
UserInterrupt = 1,
RegionClose = 2,
Abort = 3,
}Expand description
Reason for cancellation, ordered from weakest to strongest.
INV-CANCEL-IDEMPOTENT: multiple cancel requests are monotone — the strongest reason wins and the reason can never get weaker.
Variants§
Trait Implementations§
Source§impl Clone for CancelReason
impl Clone for CancelReason
Source§fn clone(&self) -> CancelReason
fn clone(&self) -> CancelReason
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 CancelReason
impl Debug for CancelReason
Source§impl Hash for CancelReason
impl Hash for CancelReason
Source§impl Ord for CancelReason
impl Ord for CancelReason
Source§fn cmp(&self, other: &CancelReason) -> Ordering
fn cmp(&self, other: &CancelReason) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CancelReason
impl PartialEq for CancelReason
Source§impl PartialOrd for CancelReason
impl PartialOrd for CancelReason
impl Copy for CancelReason
impl Eq for CancelReason
impl StructuralPartialEq for CancelReason
Auto Trait Implementations§
impl Freeze for CancelReason
impl RefUnwindSafe for CancelReason
impl Send for CancelReason
impl Sync for CancelReason
impl Unpin for CancelReason
impl UnsafeUnpin for CancelReason
impl UnwindSafe for CancelReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).