pub enum ServerMsg {
Announce {
name: String,
id: i32,
type: String,
pubuid: Option<i32>,
properties: BTreeMap<String, bool>,
},
Unannounce {
name: String,
id: i32,
},
Properties {
name: String,
ack: bool,
},
}
Variants§
Announce
Topic Announcement Message
The server shall send this message for each of the following conditions:
- To all clients subscribed to a matching prefix when a topic is created
- To a client in response to an Publish Request Message (publish) from that client
Fields
Unannounce
Topic Removed Message
The server shall send this message when a previously announced (via a Topic Announcement Message ([Announce]) topic is deleted.
Fields
Properties
Properties Update Message
The server shall send this message when a previously announced (via a Topic Announcement Message ([Announce]) topic has its properties changed (via Set Properties Message ([SetProperties]).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ServerMsg
impl<'de> Deserialize<'de> for ServerMsg
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 ServerMsg
impl RefUnwindSafe for ServerMsg
impl Send for ServerMsg
impl Sync for ServerMsg
impl Unpin for ServerMsg
impl UnwindSafe for ServerMsg
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