pub trait Shutdown: Send + 'static + Sync + DynClone {
    fn shutdown<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn scope_id(&self) -> ScopeId; }
Expand description

Shutdown contract , should be implemented on the handle

Required methods

Send shutdown signal to the corresponding actor

Return the corresponding actor’s scope_id

Implementors