Trait overclock::core::Shutdown

source ·
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

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Implementors§