pub struct MqttLastWill {
pub topic: String,
pub qos: u8,
pub message: String,
pub retain: bool,
}Expand description
Mqtt last will structure
Fields§
§topic: StringThe topic where the Last Will and Testament message will be sent.
qos: u8Defines how hard the broker/client will try to ensure that the Last Will and Testament message is received. Its value MUST be either 0, 1 or 2.
message: StringLast Will message.
retain: boolWhether the broker should retain the Last Will and Testament message or not.
Trait Implementations§
Source§impl Clone for MqttLastWill
impl Clone for MqttLastWill
Source§fn clone(&self) -> MqttLastWill
fn clone(&self) -> MqttLastWill
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MqttLastWill
impl Debug for MqttLastWill
Source§impl<'de> Deserialize<'de> for MqttLastWill
impl<'de> Deserialize<'de> for MqttLastWill
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MqttLastWill, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MqttLastWill, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for MqttLastWill
impl Serialize for MqttLastWill
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
Auto Trait Implementations§
impl Freeze for MqttLastWill
impl RefUnwindSafe for MqttLastWill
impl Send for MqttLastWill
impl Sync for MqttLastWill
impl Unpin for MqttLastWill
impl UnsafeUnpin for MqttLastWill
impl UnwindSafe for MqttLastWill
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