Trait CancellationToken

Source
pub trait CancellationToken:
    Send
    + Sync
    + Debug {
    // Required methods
    fn is_cancelled(&self) -> bool;
    fn wait_cancellation(&self) -> LocalBoxFuture<'static, ()>;
}

Required Methods§

Implementations on Foreign Types§

Source§

impl CancellationToken for CancellationToken

Implementors§