[][src]Trait xtra::Actor

pub trait Actor: 'static + Sized {
    fn started(&mut self, _ctx: &mut Context<Self>) { ... }
fn stopped(&mut self, _ctx: &mut Context<Self>) { ... }
fn start(self) -> (Address<Self>, ActorManager<Self>)
    where
        Self: Sized
, { ... } }

Provided methods

fn started(&mut self, _ctx: &mut Context<Self>)

Called as soon as the actor has been started.

fn stopped(&mut self, _ctx: &mut Context<Self>)

Called when the actor is in the process of stopping. This should be used for any final cleanup before the actor is dropped.

fn start(self) -> (Address<Self>, ActorManager<Self>) where
    Self: Sized

Loading content...

Implementors

Loading content...