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