pub trait UserEvent: Sized {
type Addr: Address;
type Message;
// Required methods
fn user(from: Self::Addr, message: Self::Message) -> Self;
fn into_user(self) -> Result<User<Self::Addr, Self::Message>, Self>;
}Expand description
Construction/extraction of the user lane through a composed event type.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".