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: ConnectAckReason
session_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: u16
reason_string: Option<ByteString>
user_properties: UserProperties
wildcard_subscription_available: Option<bool>
subscription_identifiers_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
sourceimpl Clone for ConnectAck
impl Clone for ConnectAck
sourcefn clone(&self) -> ConnectAck
fn clone(&self) -> ConnectAck
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ConnectAck
impl Debug for ConnectAck
sourceimpl Default for ConnectAck
impl Default for ConnectAck
sourcefn default() -> ConnectAck
fn default() -> ConnectAck
Returns the “default value” for a type. Read more
sourceimpl PartialEq<ConnectAck> for ConnectAck
impl PartialEq<ConnectAck> for ConnectAck
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ConnectAck) -> bool
fn ne(&self, other: &ConnectAck) -> bool
This method tests for !=
.
impl StructuralPartialEq for ConnectAck
Auto Trait Implementations
impl !RefUnwindSafe for ConnectAck
impl Send for ConnectAck
impl Sync for ConnectAck
impl Unpin for ConnectAck
impl !UnwindSafe for ConnectAck
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more