pub struct PubSubMessage {
pub topic: String,
pub dataparts: Vec<BytesMut>,
}
Expand description
Raw PUB/SUB message
Fields§
§topic: String
§dataparts: Vec<BytesMut>
Implementations§
Source§impl PubSubMessage
impl PubSubMessage
Sourcepub fn new(topic: String) -> Fallible<PubSubMessage>
pub fn new(topic: String) -> Fallible<PubSubMessage>
Instantiate new PubSubDataMessage with given topic
Trait Implementations§
Source§impl Clone for PubSubMessage
impl Clone for PubSubMessage
Source§fn clone(&self) -> PubSubMessage
fn clone(&self) -> PubSubMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PubSubMessage
impl Debug for PubSubMessage
Source§impl Default for PubSubMessage
impl Default for PubSubMessage
Source§fn default() -> PubSubMessage
fn default() -> PubSubMessage
Returns the “default value” for a type. Read more
Source§impl TryFrom<&PubSubDataMessage> for PubSubMessage
impl TryFrom<&PubSubDataMessage> for PubSubMessage
Source§impl TryFrom<&PubSubImageMessage> for PubSubMessage
impl TryFrom<&PubSubImageMessage> for PubSubMessage
Source§impl TryFrom<&PubSubMessage> for PubSubDataMessage
impl TryFrom<&PubSubMessage> for PubSubDataMessage
Source§impl TryFrom<&PubSubMessage> for PubSubImageMessage
impl TryFrom<&PubSubMessage> for PubSubImageMessage
Source§impl TryFrom<&PubSubMessage> for RawMessage
impl TryFrom<&PubSubMessage> for RawMessage
Source§impl TryFrom<&RawMessage> for PubSubMessage
impl TryFrom<&RawMessage> for PubSubMessage
Source§impl TryFrom<PubSubDataMessage> for PubSubMessage
impl TryFrom<PubSubDataMessage> for PubSubMessage
Source§impl TryFrom<PubSubImageMessage> for PubSubMessage
impl TryFrom<PubSubImageMessage> for PubSubMessage
Source§impl TryFrom<PubSubMessage> for PubSubDataMessage
impl TryFrom<PubSubMessage> for PubSubDataMessage
Source§impl TryFrom<PubSubMessage> for PubSubImageMessage
impl TryFrom<PubSubMessage> for PubSubImageMessage
Source§impl TryFrom<PubSubMessage> for RawMessage
impl TryFrom<PubSubMessage> for RawMessage
Source§impl TryFrom<RawMessage> for PubSubMessage
impl TryFrom<RawMessage> for PubSubMessage
Source§impl ZMQCodec for PubSubMessage
impl ZMQCodec for PubSubMessage
impl PubSubMessageMarker for PubSubMessage
impl ZMQMessageMarker for PubSubMessage
Auto Trait Implementations§
impl Freeze for PubSubMessage
impl RefUnwindSafe for PubSubMessage
impl Send for PubSubMessage
impl Sync for PubSubMessage
impl Unpin for PubSubMessage
impl UnwindSafe for PubSubMessage
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