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

pub struct Connect {
Show fields pub clean_start: bool, pub keep_alive: u16, pub session_expiry_interval_secs: Option<u32>, pub auth_method: Option<ByteString>, pub auth_data: Option<Bytes>, pub request_problem_info: bool, pub request_response_info: bool, pub receive_max: Option<NonZeroU16>, pub topic_alias_max: u16, pub user_properties: UserProperties, pub max_packet_size: Option<NonZeroU32>, pub last_will: Option<LastWill>, pub client_id: ByteString, pub username: Option<ByteString>, pub password: Option<Bytes>,
}
Expand description

Connect packet content

Fields

clean_start: bool

the handling of the Session state.

keep_alive: u16

a time interval measured in seconds.

session_expiry_interval_secs: Option<u32>auth_method: Option<ByteString>auth_data: Option<Bytes>request_problem_info: boolrequest_response_info: boolreceive_max: Option<NonZeroU16>topic_alias_max: u16user_properties: UserPropertiesmax_packet_size: Option<NonZeroU32>last_will: Option<LastWill>

Will Message be stored on the Server and associated with the Network Connection.

client_id: ByteString

identifies the Client to the Server.

username: Option<ByteString>

username can be used by the Server for authentication and authorization.

password: Option<Bytes>

password can be used by the Server for authentication and authorization.

Implementations

Set client_id value

Set receive_max value

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

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

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)

recently added

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.