Trait actix::Actor
[−]
[src]
pub trait Actor: Sized + 'static { fn start(&mut self, ctx: &mut Context<Self>) { ... } fn finished(&mut self, ctx: &mut Context<Self>) { ... } }
Provided Methods
fn start(&mut self, ctx: &mut Context<Self>)
Method is called when actor get polled first time.
fn finished(&mut self, ctx: &mut Context<Self>)
Method is called when context's stream finishes.
By default returns ActorStatus::Done
.