[][src]Struct ntex_mqtt::v5::codec::Disconnect

pub struct Disconnect {
    pub reason_code: DisconnectReasonCode,
    pub session_expiry_interval_secs: Option<u32>,
    pub server_reference: Option<ByteString>,
    pub reason_string: Option<ByteString>,
    pub user_properties: UserProperties,
}

DISCONNECT message

Fields

reason_code: DisconnectReasonCodesession_expiry_interval_secs: Option<u32>server_reference: Option<ByteString>reason_string: Option<ByteString>user_properties: UserProperties

Implementations

impl Disconnect[src]

pub fn new(reason_code: DisconnectReasonCode) -> Self[src]

Create new instance of Disconnect with specified code

Trait Implementations

impl Clone for Disconnect[src]

impl Debug for Disconnect[src]

impl Default for Disconnect[src]

impl From<Disconnect> for Packet[src]

impl PartialEq<Disconnect> for Disconnect[src]

impl StructuralPartialEq for Disconnect[src]

Auto Trait Implementations

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> Instrument for T[src]

impl<T> Instrument 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,