pub enum Message<'a> {
Show 15 variants
Hello {
name: &'a str,
version: u8,
},
Welcome {
session: &'a str,
},
Announce {
signal_count: u16,
},
Set {
address: &'a str,
value: Value,
},
Subscribe {
id: u32,
pattern: &'a str,
},
Unsubscribe {
id: u32,
},
Publish {
address: &'a str,
},
Bundle {
message_count: u16,
},
Sync {
timestamp: u64,
},
Ping,
Pong,
Query {
pattern: &'a str,
},
Result {
signal_count: u16,
},
Error {
code: u16,
message: &'a str,
},
Unknown(u8),
}Expand description
Decoded message (zero-copy where possible)
Variants§
Hello
Welcome
Announce
Set
Subscribe
Unsubscribe
Publish
Bundle
Sync
Ping
Pong
Query
Result
Error
Unknown(u8)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Message<'a>
impl<'a> RefUnwindSafe for Message<'a>
impl<'a> Send for Message<'a>
impl<'a> Sync for Message<'a>
impl<'a> Unpin for Message<'a>
impl<'a> UnsafeUnpin for Message<'a>
impl<'a> UnwindSafe for Message<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more