pub trait SupHandle<T: Send>: 'static + Send + Sized + Sync {
    type Event;

    fn report<'life0, 'async_trait>(
        &'life0 self,
        scope_id: ScopeId,
        service: Service
    ) -> Pin<Box<dyn Future<Output = Option<()>> + Send + 'async_trait>>
    where
        T: Actor<Self>,
        Self: SupHandle<T>,
        'life0: 'async_trait,
        Self: 'async_trait
; fn eol<'async_trait>(
        self,
        scope_id: ScopeId,
        service: Service,
        actor: T,
        r: ActorResult<()>
    ) -> Pin<Box<dyn Future<Output = Option<()>> + Send + 'async_trait>>
    where
        T: Actor<Self>,
        Self: 'async_trait
; }
Expand description

The sup handle which supervise T: Actor

Required Associated Types

The supervisor event type

Required Methods

Report any status & service changes return Some(()) if the report success

Report End of life for a T actor return Some(()) if the report success

Implementors