pub trait ServiceEvent<T>: Send + 'static {
    // Required methods
    fn report_event(scope: ScopeId, service: Service) -> Self;
    fn eol_event(
        scope: ScopeId,
        service: Service,
        actor: T,
        r: ActorResult<()>
    ) -> Self;
}
Expand description

Ideally it should be implemented using proc_macro on the event type

Required Methods§

source

fn report_event(scope: ScopeId, service: Service) -> Self

Creates report event that will be pushed as status change from the Child: T

source

fn eol_event( scope: ScopeId, service: Service, actor: T, r: ActorResult<()> ) -> Self

Creates eol event that will be pushed as end of life event once the Child: T breakdown

Implementors§