Interruptible

Trait Interruptible 

Source
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§

Source

fn interrupted(&self) -> bool

Returns whether the current operation should be cancelled.

Implementations on Foreign Types§

Source§

impl<I: Interruptible> Interruptible for &I

Implementors§