pub struct Cancellation { /* private fields */ }Expand description
Cancellation signal propagated through the resolution chain. A
resolver must check cancellation before returning a result and
return ErrorCode::Timeout if cancelled.
Phase 1 uses a simple bool flag. Phase 2 may upgrade to a token type
backed by the runtime (tokio CancellationToken or embassy signal).
The public API (is_cancelled / cancel) stays stable.
Implementations§
Source§impl Cancellation
impl Cancellation
Trait Implementations§
Source§impl Clone for Cancellation
impl Clone for Cancellation
Source§fn clone(&self) -> Cancellation
fn clone(&self) -> Cancellation
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 Cancellation
impl Debug for Cancellation
Source§impl Default for Cancellation
impl Default for Cancellation
Source§fn default() -> Cancellation
fn default() -> Cancellation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Cancellation
impl<'de> Deserialize<'de> for Cancellation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Cancellation
Source§impl PartialEq for Cancellation
impl PartialEq for Cancellation
Source§impl Serialize for Cancellation
impl Serialize for Cancellation
impl StructuralPartialEq for Cancellation
Auto Trait Implementations§
impl Freeze for Cancellation
impl RefUnwindSafe for Cancellation
impl Send for Cancellation
impl Sync for Cancellation
impl Unpin for Cancellation
impl UnsafeUnpin for Cancellation
impl UnwindSafe for Cancellation
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