Skip to main content

TaskNotifier

Trait TaskNotifier 

Source
pub trait TaskNotifier: QueueNotifier + Clone {
    // Provided method
    fn notify_cancel(&self, _snapshot: impl FnOnce() -> TaskSnapshot) { ... }
}
Expand description

原生取消事实之后安排必要检查;默认实现不求值快照闭包(closure)。

Provided Methods§

Source

fn notify_cancel(&self, _snapshot: impl FnOnce() -> TaskSnapshot)

安排取消事实之后的必要检查;普通实现不求值snapshot,定时实现只依据原生Recorded事实。

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§