pub trait Actor{
type Cmd: Send + Sync + 'static;
// Required method
fn infinite_loop(
&mut self,
) -> impl Future<Output = Result<Self::Cmd, Break>> + Send;
}Required Associated Types§
Required Methods§
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.