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 { ... }
}