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
Associated Types
Required methods
Report any status & service changes return Some(()) if the report success