pub trait Interruptible {
// Required method
fn interrupted(&self) -> bool;
}Expand description
A trait for types that can be periodically polled to check whether to cancel an operation.
Required Methods§
Sourcefn interrupted(&self) -> bool
fn interrupted(&self) -> bool
Returns whether the current operation should be cancelled.