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: boolTrait Implementations§
impl<'a> StructuralPartialEq for LastWill<'a>
Auto Trait Implementations§
impl<'a> Freeze for LastWill<'a>
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§
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