pub struct WillMessage {
pub topic: String,
pub payload: Vec<u8>,
pub qos: QoS,
pub retain: bool,
}Expand description
A message the client sends if the connection is lost without a DISCONNECT.
Fields§
§topic: String§payload: Vec<u8>§qos: QoS§retain: boolTrait Implementations§
Source§impl Clone for WillMessage
impl Clone for WillMessage
Source§impl Debug for WillMessage
impl Debug for WillMessage
impl Eq for WillMessage
Source§impl PartialEq for WillMessage
impl PartialEq for WillMessage
impl StructuralPartialEq for WillMessage
Auto Trait Implementations§
impl Forget for WillMessage
impl Freeze for WillMessage
impl Move for WillMessage
impl RefUnwindSafe for WillMessage
impl Send for WillMessage
impl Sync for WillMessage
impl Unpin for WillMessage
impl UnsafeUnpin for WillMessage
impl UnwindSafe for WillMessage
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