pub enum CancellationState {
Active,
Requested(CancellationRequest),
}Expand description
Cancellation state carried by a node execution context.
Variants§
Active
No cancellation has been requested.
Requested(CancellationRequest)
Cancellation has been requested at the runtime boundary.
Implementations§
Source§impl CancellationState
impl CancellationState
Sourcepub const fn is_requested(&self) -> bool
pub const fn is_requested(&self) -> bool
Return whether cancellation has been requested.
Trait Implementations§
Source§impl Clone for CancellationState
impl Clone for CancellationState
Source§fn clone(&self) -> CancellationState
fn clone(&self) -> CancellationState
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 CancellationState
impl Debug for CancellationState
Source§impl PartialEq for CancellationState
impl PartialEq for CancellationState
Source§fn eq(&self, other: &CancellationState) -> bool
fn eq(&self, other: &CancellationState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CancellationState
impl StructuralPartialEq for CancellationState
Auto Trait Implementations§
impl Freeze for CancellationState
impl RefUnwindSafe for CancellationState
impl Send for CancellationState
impl Sync for CancellationState
impl Unpin for CancellationState
impl UnsafeUnpin for CancellationState
impl UnwindSafe for CancellationState
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).