pub struct WsEnvelope {
pub topic: String,
pub payload: Value,
}Expand description
Raw MQTT message forwarded from the broker event loop.
Consumed by WsBridge::spawn_monitor_task; not sent to browser clients.
Fields§
§topic: String§payload: ValueTrait Implementations§
Source§impl Clone for WsEnvelope
impl Clone for WsEnvelope
Source§fn clone(&self) -> WsEnvelope
fn clone(&self) -> WsEnvelope
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 WsEnvelope
impl Debug for WsEnvelope
Source§impl<'de> Deserialize<'de> for WsEnvelope
impl<'de> Deserialize<'de> for WsEnvelope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WsEnvelope
impl RefUnwindSafe for WsEnvelope
impl Send for WsEnvelope
impl Sync for WsEnvelope
impl Unpin for WsEnvelope
impl UnwindSafe for WsEnvelope
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