Trait overclock::core::SupHandle

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

    // Required methods
    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> + 'async_trait,
             'life0: '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§

source

type Event

The supervisor event type

Required Methods§

source

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> + 'async_trait, 'life0: 'async_trait,

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

source

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,

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

Implementors§

source§

impl<A: Send + 'static, T: ServiceEvent<A>> SupHandle<A> for AbortableBoundedHandle<T>

§

type Event = T

source§

impl<A: Send + 'static, T: ServiceEvent<A>> SupHandle<A> for AbortableUnboundedHandle<T>

§

type Event = T

source§

impl<A: Send + 'static, T: ServiceEvent<A>> SupHandle<A> for UnboundedHandle<T>

§

type Event = T

source§

impl<T: Send + 'static> SupHandle<T> for NullSupervisor

§

type Event = ()