[][src]Struct mqttrs::LastWill

pub struct LastWill<'a> {
    pub topic: &'a str,
    pub message: &'a [u8],
    pub qos: QoS,
    pub retain: bool,
}

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 strmessage: &'a [u8]qos: QoSretain: bool

Trait Implementations

impl<'a> Clone for LastWill<'a>[src]

impl<'a> Debug for LastWill<'a>[src]

impl<'a> PartialEq<LastWill<'a>> for LastWill<'a>[src]

impl<'a> StructuralPartialEq for LastWill<'a>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.