pub struct Message {
pub topic: String,
pub data: Vec<u8>,
}Expand description
Serialized message type.
Fields§
§topic: StringPubsub topic on which this message arrived or is intended for.
Note that when subscribing to patterns, topic is the concrete topic
rather than the pattern it matched.
data: Vec<u8>Message data.
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 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