Trait simple_life::Stop

source ·
pub trait Stop: Send {
    // Required method
    fn stop<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait;

    // Provided methods
    fn concrete<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = ConcreteStop> + Send + 'async_trait>>
       where Self: Sized + 'static + 'async_trait { ... }
    fn into_guard<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = StopGuard> + Send + 'async_trait>>
       where Self: Sized + 'static + 'async_trait { ... }
}

Required Methods§

source

fn stop<'async_trait>( self ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait,

Provided Methods§

source

fn concrete<'async_trait>( self ) -> Pin<Box<dyn Future<Output = ConcreteStop> + Send + 'async_trait>>where Self: Sized + 'static + 'async_trait,

source

fn into_guard<'async_trait>( self ) -> Pin<Box<dyn Future<Output = StopGuard> + Send + 'async_trait>>where Self: Sized + 'static + 'async_trait,

Implementors§

source§

impl Stop for ConcreteStop

source§

impl Stop for IntrospectableStop

source§

impl Stop for NoStop

source§

impl<F, R> Stop for Fwhere F: FnOnce() -> R + Send, R: Future<Output = ()> + Send,