Trait Stoppable

Source
pub trait Stoppable {
    // Required methods
    fn stop_requested(&self) -> bool;
    fn request_stop(&mut self);
    fn discard_stop_request(&mut self);
}
Expand description

A trait for types that want to expose a stop API

Required Methods§

Source

fn stop_requested(&self) -> bool

Check if stop is requested

Source

fn request_stop(&mut self)

Request to stop

Source

fn discard_stop_request(&mut self)

Discard the stop request

Implementors§

Source§

impl<C, I, R, SC> Stoppable for StdState<C, I, R, SC>

Source§

impl<I> Stoppable for NopState<I>