pub struct LastWill {
pub qos: QoS,
pub retain: bool,
pub topic_name: TopicName,
pub payload: Bytes,
pub properties: WillProperties,
}
Expand description
The will message for CONNECT packet.
Fields§
§qos: QoS
§retain: bool
§topic_name: TopicName
§payload: Bytes
§properties: WillProperties
Implementations§
Trait Implementations§
impl Eq for LastWill
impl StructuralPartialEq for LastWill
Auto Trait Implementations§
impl !Freeze for LastWill
impl RefUnwindSafe for LastWill
impl Send for LastWill
impl Sync for LastWill
impl Unpin for LastWill
impl UnwindSafe for LastWill
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