pub enum Message<'a> {
Hello {
name: &'a str,
version: u8,
},
Welcome {
session: &'a str,
},
Set {
address: &'a str,
value: Value,
},
Subscribe {
id: u32,
pattern: &'a str,
},
Unsubscribe {
id: u32,
},
Ping,
Pong,
Error {
code: u16,
message: &'a str,
},
Unknown(u8),
}Expand description
Decoded message (zero-copy where possible)
Variants§
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> 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