Trait wamp_core::messages::WampMessage
source · 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.
Object Safety§
This trait is not object safe.