Struct Will
pub struct Will<'a> {
pub qos: QoS,
pub retain: bool,
pub properties: &'a WillProperties,
pub topic: &'a Topic,
pub payload: &'a MqttBytes,
}Expand description
Will message included in a CONNECT packet.
Fields§
§qos: QoSQoS level for the will message.
retain: boolWhether the will message should be retained.
properties: &'a WillPropertiesProperties associated with the will message.
topic: &'a TopicTopic for the will message.
payload: &'a MqttBytesPayload for the will message.
Implementations§
Trait Implementations§
impl<'a> Eq for Will<'a>
impl<'a> StructuralPartialEq for Will<'a>
Auto Trait Implementations§
impl<'a> Freeze for Will<'a>
impl<'a> RefUnwindSafe for Will<'a>
impl<'a> Send for Will<'a>
impl<'a> Sync for Will<'a>
impl<'a> Unpin for Will<'a>
impl<'a> UnwindSafe for Will<'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