pub struct LastWill {
pub qos: QoS,
pub retain: bool,
pub topic: ByteString,
pub message: Bytes,
}
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: ByteString
the Will Topic
message: Bytes
defines the Application Message that is to be published to the Will Topic
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)