pub trait Actor:
Send
+ Sync
+ 'static {
type Error;
// Provided methods
fn initialize(
&mut self,
) -> impl Future<Output = Result<(), Self::Error>> + Send { ... }
fn deinitialize(&self) -> impl Future<Output = ()> + Send { ... }
}Expand description
Required Associated Types§
Provided 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.