pub trait Cancel {
// Required method
fn is_cancelled(&self) -> bool;
}Expand description
A cancellation signal checked by long-running library operations at loop boundaries. Implementations must be cheap to query.
Required Methods§
Sourcefn is_cancelled(&self) -> bool
fn is_cancelled(&self) -> bool
Returns true once the operation should stop as soon as possible.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".