pub struct SubMsg<'a> {
pub path: PubSubPath<'a>,
pub payload: &'a [u8],
}Expand description
Subscription Message
This is a message that has been subscribed to by a client.
Fields§
§path: PubSubPath<'a>The path that this message was sent to
Note: If the client used wildcard subscribe(s), this may not match the subscription text
payload: &'a [u8]The payload sent along with the message
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for SubMsg<'a>where
'de: 'a,
impl<'de, 'a> Deserialize<'de> for SubMsg<'a>where
'de: 'a,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SubMsg<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SubMsg<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> Serialize for SubMsg<'a>
impl<'a> Serialize for SubMsg<'a>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'a> Eq for SubMsg<'a>
impl<'a> StructuralPartialEq for SubMsg<'a>
Auto Trait Implementations§
impl<'a> Freeze for SubMsg<'a>
impl<'a> RefUnwindSafe for SubMsg<'a>
impl<'a> Send for SubMsg<'a>
impl<'a> Sync for SubMsg<'a>
impl<'a> Unpin for SubMsg<'a>
impl<'a> UnwindSafe for SubMsg<'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