pub trait WampMessage {
const ID: u64;
// Required method
fn direction(role: Roles) -> &'static MessageDirection;
}
Required Associated Constants§
Required Methods§
Sourcefn direction(role: Roles) -> &'static MessageDirection
fn direction(role: Roles) -> &'static MessageDirection
§Direction method
Indicates the Message Direction for a specified Role.
Receives means that the specified Role is allowed to receive the message. Sends means that the specified Role allowed to send the message.
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.