pub struct LastWill {
pub qos: QoS,
pub retain: bool,
pub topic_name: TopicName,
pub message: Bytes,
}
Expand description
Message that the server should publish when the client disconnects.
Sent by the client in the Connect packet. MQTT 3.1.3.3.
Fields§
§qos: QoS
§retain: bool
§topic_name: TopicName
§message: Bytes
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