pub enum CancelWitnessError {
TaskMismatch,
RegionMismatch,
EpochMismatch,
PhaseRegression {
from: CancelPhase,
to: CancelPhase,
},
ReasonWeakened {
from: CancelKind,
to: CancelKind,
},
}Expand description
Errors when validating cancellation witnesses.
Variants§
TaskMismatch
Task identifiers do not match.
RegionMismatch
Region identifiers do not match.
EpochMismatch
Cancellation epoch differs.
PhaseRegression
Phase regression detected.
ReasonWeakened
Cancellation severity weakened.
Trait Implementations§
Source§impl Clone for CancelWitnessError
impl Clone for CancelWitnessError
Source§fn clone(&self) -> CancelWitnessError
fn clone(&self) -> CancelWitnessError
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 CancelWitnessError
impl Debug for CancelWitnessError
Source§impl PartialEq for CancelWitnessError
impl PartialEq for CancelWitnessError
impl Copy for CancelWitnessError
impl Eq for CancelWitnessError
impl StructuralPartialEq for CancelWitnessError
Auto Trait Implementations§
impl Freeze for CancelWitnessError
impl RefUnwindSafe for CancelWitnessError
impl Send for CancelWitnessError
impl Sync for CancelWitnessError
impl Unpin for CancelWitnessError
impl UnsafeUnpin for CancelWitnessError
impl UnwindSafe for CancelWitnessError
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).