pub trait Shutdown:
Send
+ 'static
+ Sync
+ DynClone {
// Required methods
fn shutdown<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn scope_id(&self) -> ScopeId;
}
Expand description
Shutdown contract , should be implemented on the handle