Struct ntex_mqtt::v5::codec::Connect [−][src]
pub struct Connect {Show 15 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: bool
request_response_info: bool
receive_max: Option<NonZeroU16>
topic_alias_max: u16
user_properties: UserProperties
max_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
Auto Trait Implementations
impl RefUnwindSafe for Connect
impl UnwindSafe for Connect
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