pub trait AppWorld: Sized {
type Message;
// Required method
fn msg(&mut self, message: Self::Message);
}Expand description
Defines how messages that indicate that something has happened get sent to the World.
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.