pub struct Message {
pub channel: Bytes,
pub data: Bytes,
pub pattern: Option<Bytes>,
}Expand description
A message pushed by the server to a subscribed connection.
Fields§
§channel: BytesThe channel the message was published to.
data: BytesThe message payload.
pattern: Option<Bytes>Set only for pattern-matched messages (PSUBSCRIBE). Contains the
pattern that matched the channel.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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