pub enum Message {
Show 24 variants
Hello(HelloMessage),
Welcome(WelcomeMessage),
Abort(AbortMessage),
Goodbye(GoodbyeMessage),
Error(ErrorMessage),
Publish(PublishMessage),
Published(PublishedMessage),
Subscribe(SubscribeMessage),
Subscribed(SubscribedMessage),
Unsubscribe(UnsubscribeMessage),
Unsubscribed(UnsubscribedMessage),
Event(EventMessage),
Call(CallMessage),
Result(ResultMessage),
Register(RegisterMessage),
Registered(RegisteredMessage),
Unregister(UnregisterMessage),
Unregistered(UnregisteredMessage),
Invocation(InvocationMessage),
Yield(YieldMessage),
Challenge(ChallengeMessage),
Authenticate(AuthenticateMessage),
Cancel(CancelMessage),
Interrupt(InterruptMessage),
}Expand description
A WAMP message.
Variants§
Hello(HelloMessage)
Welcome(WelcomeMessage)
Abort(AbortMessage)
Goodbye(GoodbyeMessage)
Error(ErrorMessage)
Publish(PublishMessage)
Published(PublishedMessage)
Subscribe(SubscribeMessage)
Subscribed(SubscribedMessage)
Unsubscribe(UnsubscribeMessage)
Unsubscribed(UnsubscribedMessage)
Event(EventMessage)
Call(CallMessage)
Result(ResultMessage)
Register(RegisterMessage)
Registered(RegisteredMessage)
Unregister(UnregisterMessage)
Unregistered(UnregisteredMessage)
Invocation(InvocationMessage)
Yield(YieldMessage)
Challenge(ChallengeMessage)
Authenticate(AuthenticateMessage)
Cancel(CancelMessage)
Interrupt(InterruptMessage)
Implementations§
Source§impl Message
impl Message
pub const HELLO_TAG: Integer = 1u64
pub const WELCOME_TAG: Integer = 2u64
pub const ABORT_TAG: Integer = 3u64
pub const GOODBYE_TAG: Integer = 6u64
pub const ERROR_TAG: Integer = 8u64
pub const PUBLISH_TAG: Integer = 16u64
pub const PUBLISHED_TAG: Integer = 17u64
pub const SUBSCRIBE_TAG: Integer = 32u64
pub const SUBSCRIBED_TAG: Integer = 33u64
pub const UNSUBSCRIBE_TAG: Integer = 34u64
pub const UNSUBSCRIBED_TAG: Integer = 35u64
pub const EVENT_TAG: Integer = 36u64
pub const CALL_TAG: Integer = 48u64
pub const RESULT_TAG: Integer = 50u64
pub const REGISTER_TAG: Integer = 64u64
pub const REGISTERED_TAG: Integer = 65u64
pub const UNREGISTER_TAG: Integer = 66u64
pub const UNREGISTERED_TAG: Integer = 67u64
pub const INVOCATION_TAG: Integer = 68u64
pub const YIELD_TAG: Integer = 70u64
pub const CHALLENGE_TAG: Integer = 4u64
pub const AUTHENTICATE_TAG: Integer = 5u64
pub const CANCEL_TAG: Integer = 49u64
pub const INTERRUPT_TAG: Integer = 69u64
pub fn tag(&self) -> Integer
Source§impl Message
impl Message
Sourcepub fn message_name(&self) -> &'static str
pub fn message_name(&self) -> &'static str
The message name, mostly for logging.
Sourcepub fn request_id(&self) -> Option<Id>
pub fn request_id(&self) -> Option<Id>
The request ID on the message.
Sourcepub fn details(&self) -> Option<&Dictionary>
pub fn details(&self) -> Option<&Dictionary>
The details dictionary on the message.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl TryFrom<&Message> for ChannelTransmittableError
impl TryFrom<&Message> for ChannelTransmittableError
impl Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)