pub trait MsgData {
type Msg;
// Required method
fn msg(&mut self, msg: Self::Msg);
}Expand description
A trait that is implemented on data to make it mutable by messages.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".