Trait simple_life::Lifecycle
source · pub trait Lifecycle: Send + 'static {
type S: Stop;
// Required method
fn start<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = Self::S> + Send + 'async_trait>>
where Self: 'async_trait;
// Provided method
fn concrete<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = ConcreteLifecycle> + Send + 'async_trait>>
where Self: Sized + 'async_trait { ... }
}