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

pub struct ConnectAck {
Show 19 fields pub session_present: bool, pub reason_code: ConnectAckReason, pub session_expiry_interval_secs: Option<u32>, pub receive_max: Option<NonZeroU16>, pub max_qos: Option<QoS>, pub retain_available: Option<bool>, pub max_packet_size: Option<u32>, pub assigned_client_id: Option<ByteString>, pub topic_alias_max: u16, pub reason_string: Option<ByteString>, pub user_properties: UserProperties, pub wildcard_subscription_available: Option<bool>, pub subscription_identifiers_available: Option<bool>, pub shared_subscription_available: Option<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>,
}
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: ConnectAckReasonsession_expiry_interval_secs: Option<u32>receive_max: Option<NonZeroU16>max_qos: Option<QoS>retain_available: Option<bool>max_packet_size: Option<u32>assigned_client_id: Option<ByteString>topic_alias_max: u16reason_string: Option<ByteString>user_properties: UserPropertieswildcard_subscription_available: Option<bool>subscription_identifiers_available: Option<bool>shared_subscription_available: Option<bool>server_keepalive_sec: Option<u16>response_info: Option<ByteString>server_reference: Option<ByteString>auth_method: Option<ByteString>auth_data: Option<Bytes>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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