pub enum CancellationLevel {
None,
BestEffortRequest,
ExactRequest,
RangeSubset,
}Expand description
Cancellation precision supported by an operation boundary.
Variants§
None
Cancellation is not propagated.
BestEffortRequest
Cancellation is advisory and may race with completion.
ExactRequest
One complete request can be cancelled precisely.
RangeSubset
A subset of one range request can be cancelled while other ranges continue.
Implementations§
Source§impl CancellationLevel
impl CancellationLevel
Sourcepub fn intersection(self, other: Self) -> Self
pub fn intersection(self, other: Self) -> Self
Returns the strongest cancellation level guaranteed by both sides.
Trait Implementations§
Source§impl Clone for CancellationLevel
impl Clone for CancellationLevel
Source§fn clone(&self) -> CancellationLevel
fn clone(&self) -> CancellationLevel
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 CancellationLevel
impl Debug for CancellationLevel
Source§impl Default for CancellationLevel
impl Default for CancellationLevel
Source§fn default() -> CancellationLevel
fn default() -> CancellationLevel
Returns the “default value” for a type. Read more
Source§impl Ord for CancellationLevel
impl Ord for CancellationLevel
Source§fn cmp(&self, other: &CancellationLevel) -> Ordering
fn cmp(&self, other: &CancellationLevel) -> 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 CancellationLevel
impl PartialEq for CancellationLevel
Source§impl PartialOrd for CancellationLevel
impl PartialOrd for CancellationLevel
impl Copy for CancellationLevel
impl Eq for CancellationLevel
impl StructuralPartialEq for CancellationLevel
Auto Trait Implementations§
impl Freeze for CancellationLevel
impl RefUnwindSafe for CancellationLevel
impl Send for CancellationLevel
impl Sync for CancellationLevel
impl Unpin for CancellationLevel
impl UnwindSafe for CancellationLevel
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