pub trait ActorRunExt {
type Env;
type Msg;
// Required methods
fn handle_call_or_cast(
&mut self,
msg: Self::Msg,
env: &mut Self::Env,
) -> impl Future<Output = Result<()>>;
fn handle_continuously(
&mut self,
env: &mut Self::Env,
) -> impl Future<Output = Result<()>>;
fn run_and_handle_exit(
&mut self,
env: &mut Self::Env,
) -> impl Future<Output = Result<()>>;
fn run_till_exit(
&mut self,
env: &mut Self::Env,
) -> impl Future<Output = Result<()>>;
}Expand description
Required Associated Types§
Required Methods§
fn handle_call_or_cast( &mut self, msg: Self::Msg, env: &mut Self::Env, ) -> impl Future<Output = Result<()>>
fn handle_continuously( &mut self, env: &mut Self::Env, ) -> impl Future<Output = Result<()>>
fn run_and_handle_exit( &mut self, env: &mut Self::Env, ) -> impl Future<Output = Result<()>>
fn run_till_exit( &mut self, env: &mut Self::Env, ) -> impl Future<Output = Result<()>>
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.