Struct ntex_mqtt::v5::codec::ConnectAck
source · pub struct ConnectAck {Show 19 fields
pub session_present: bool,
pub reason_code: ConnectAckReason,
pub session_expiry_interval_secs: Option<u32>,
pub receive_max: NonZeroU16,
pub max_qos: QoS,
pub max_packet_size: Option<u32>,
pub assigned_client_id: Option<ByteString>,
pub topic_alias_max: u16,
pub retain_available: bool,
pub wildcard_subscription_available: bool,
pub subscription_identifiers_available: bool,
pub shared_subscription_available: bool,
pub server_keepalive_sec: Option<u16>,
pub response_info: Option<ByteString>,
pub server_reference: Option<ByteString>,
pub auth_method: Option<ByteString>,
pub auth_data: Option<Bytes>,
pub reason_string: Option<ByteString>,
pub user_properties: UserProperties,
}
Expand description
Connect acknowledgment packet
Fields§
§session_present: bool
enables a Client to establish whether the Client and Server have a consistent view about whether there is already stored Session state.
reason_code: ConnectAckReason
§session_expiry_interval_secs: Option<u32>
§receive_max: NonZeroU16
§max_qos: QoS
§max_packet_size: Option<u32>
§assigned_client_id: Option<ByteString>
§topic_alias_max: u16
§retain_available: bool
§wildcard_subscription_available: bool
§subscription_identifiers_available: bool
§server_keepalive_sec: Option<u16>
§response_info: Option<ByteString>
§server_reference: Option<ByteString>
§auth_method: Option<ByteString>
§auth_data: Option<Bytes>
§reason_string: Option<ByteString>
§user_properties: UserProperties
Trait Implementations§
source§impl Clone for ConnectAck
impl Clone for ConnectAck
source§fn clone(&self) -> ConnectAck
fn clone(&self) -> ConnectAck
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConnectAck
impl Debug for ConnectAck
source§impl Default for ConnectAck
impl Default for ConnectAck
source§fn default() -> ConnectAck
fn default() -> ConnectAck
Returns the “default value” for a type. Read more
source§impl From<ConnectAck> for Packet
impl From<ConnectAck> for Packet
source§fn from(pkt: ConnectAck) -> Self
fn from(pkt: ConnectAck) -> Self
Converts to this type from the input type.
source§impl PartialEq<ConnectAck> for ConnectAck
impl PartialEq<ConnectAck> for ConnectAck
source§fn eq(&self, other: &ConnectAck) -> bool
fn eq(&self, other: &ConnectAck) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.