[][src]Trait sealrs::actors::actor::Actor

pub trait Actor {
    fn receive(&mut self, msg: Message, ctx: ActorContext) -> HandleResult;

    fn pre_start(&mut self, _ctx: ActorContext) { ... }
fn post_stop(&mut self, _ctx: ActorContext) { ... }
fn pre_fail(
        &mut self,
        _ctx: ActorContext,
        err: Error,
        strategy: SupervisionStrategy
    ) { ... }
fn post_restart(&mut self, _ctx: ActorContext) { ... }
fn as_any(&mut self) -> &dyn Any { ... } }

Required methods

fn receive(&mut self, msg: Message, ctx: ActorContext) -> HandleResult

Loading content...

Provided methods

fn pre_start(&mut self, _ctx: ActorContext)

fn post_stop(&mut self, _ctx: ActorContext)

fn pre_fail(
    &mut self,
    _ctx: ActorContext,
    err: Error,
    strategy: SupervisionStrategy
)

fn post_restart(&mut self, _ctx: ActorContext)

fn as_any(&mut self) -> &dyn Any

Loading content...

Implementors

impl Actor for AskActor[src]

impl Actor for LaridWatcher[src]

impl Actor for SyntheticActor[src]

Loading content...