[][src]Struct mqtt_v5::types::ConnectPacket

pub struct ConnectPacket {
    pub protocol_name: String,
    pub protocol_version: ProtocolVersion,
    pub clean_start: bool,
    pub keep_alive: u16,
    pub session_expiry_interval: Option<SessionExpiryInterval>,
    pub receive_maximum: Option<ReceiveMaximum>,
    pub maximum_packet_size: Option<MaximumPacketSize>,
    pub topic_alias_maximum: Option<TopicAliasMaximum>,
    pub request_response_information: Option<RequestResponseInformation>,
    pub request_problem_information: Option<RequestProblemInformation>,
    pub user_properties: Vec<UserProperty>,
    pub authentication_method: Option<AuthenticationMethod>,
    pub authentication_data: Option<AuthenticationData>,
    pub client_id: String,
    pub will: Option<FinalWill>,
    pub user_name: Option<String>,
    pub password: Option<String>,
}

Fields

protocol_name: Stringprotocol_version: ProtocolVersionclean_start: boolkeep_alive: u16session_expiry_interval: Option<SessionExpiryInterval>receive_maximum: Option<ReceiveMaximum>maximum_packet_size: Option<MaximumPacketSize>topic_alias_maximum: Option<TopicAliasMaximum>request_response_information: Option<RequestResponseInformation>request_problem_information: Option<RequestProblemInformation>user_properties: Vec<UserProperty>authentication_method: Option<AuthenticationMethod>authentication_data: Option<AuthenticationData>client_id: Stringwill: Option<FinalWill>user_name: Option<String>password: Option<String>

Trait Implementations

impl Debug for ConnectPacket[src]

impl PartialEq<ConnectPacket> for ConnectPacket[src]

impl PropertySize for ConnectPacket[src]

impl StructuralPartialEq for ConnectPacket[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.