Stop

Trait 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 F
where F: FnOnce() -> R + Send, R: Future<Output = ()> + Send,