pub struct LastWill<'a> {
pub topic: &'a str,
pub message: &'a [u8],
pub qos: QoS,
pub retain: bool,
}
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
topic: &'a str
message: &'a [u8]
qos: QoS
retain: bool
Trait Implementations
sourceimpl<'a> PartialEq<LastWill<'a>> for LastWill<'a>
impl<'a> PartialEq<LastWill<'a>> for LastWill<'a>
impl<'a> StructuralPartialEq for LastWill<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for LastWill<'a>
impl<'a> Send for LastWill<'a>
impl<'a> Sync for LastWill<'a>
impl<'a> Unpin for LastWill<'a>
impl<'a> UnwindSafe for LastWill<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more