pub trait Actor: Sized {
// Provided methods
fn starting(
&mut self,
_ctx: &Context<Self>,
) -> impl Future<Output = ()> + Send { ... }
fn stopping(
&mut self,
_ctx: &Context<Self>,
) -> impl Future<Output = ()> + Send { ... }
}Expand description
Provided Methods§
fn starting(&mut self, _ctx: &Context<Self>) -> impl Future<Output = ()> + Send
fn stopping(&mut self, _ctx: &Context<Self>) -> impl Future<Output = ()> + Send
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.