Struct ntex_mqtt::v5::codec::Disconnect [−][src]
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,
}
Expand description
DISCONNECT message
Fields
reason_code: DisconnectReasonCode
session_expiry_interval_secs: Option<u32>
server_reference: Option<ByteString>
reason_string: Option<ByteString>
user_properties: UserProperties
Implementations
Create new instance of Disconnect
with specified code
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Disconnect
impl Send for Disconnect
impl Sync for Disconnect
impl Unpin for Disconnect
impl UnwindSafe for Disconnect
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more