pub struct LastWill<'a> {
pub qos: QoS,
pub retain: bool,
pub topic: &'a str,
pub message: &'a [u8],
}
Expand description
Connection Will
Fields§
§qos: QoS
the QoS level to be used when publishing the Will Message.
retain: bool
the Will Message is to be Retained when it is published.
topic: &'a str
the Will Topic
message: &'a [u8]
defines the Application Message that is to be published to the Will Topic
Trait 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