pub trait AsyncModel {
type Actor;
type Client;
type Config;
type Data;
// Required methods
fn controller(config: Self::Config);
fn constructor(&self) -> Result<Self, Box<dyn Error>>
where Self: Sized;
}Required Associated Types§
Required Methods§
fn controller(config: Self::Config)
fn constructor(&self) -> Result<Self, Box<dyn Error>>where
Self: Sized,
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.