ActorHooks

Trait ActorHooks 

Source
pub trait ActorHooks: Actor {
    // Provided methods
    fn started(&mut self, _ctx: &Context<Self>) { ... }
    fn stopped(&mut self) { ... }
}

Provided Methods§

Source

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

Source

fn stopped(&mut self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§