pub struct AuthPacket { /* private fields */ }Expand description
An AUTH packet is sent from Client to Server or Server to Client as part of an extended authentication exchange, such as challenge / response authentication.
It is a Protocol Error for the Client or Server to send an AUTH packet if the CONNECT packet did not contain the same Authentication Method.
Implementations§
Source§impl AuthPacket
impl AuthPacket
Sourcepub fn set_reason_code(&mut self, code: ReasonCode) -> &mut Self
pub fn set_reason_code(&mut self, code: ReasonCode) -> &mut Self
Update reason code.
Sourcepub const fn reason_code(&self) -> ReasonCode
pub const fn reason_code(&self) -> ReasonCode
Get reason code.
Sourcepub fn properties_mut(&mut self) -> &mut Properties
pub fn properties_mut(&mut self) -> &mut Properties
Get a mutable reference to property list.
Sourcepub const fn properties(&self) -> &Properties
pub const fn properties(&self) -> &Properties
Get a reference to property list.
Trait Implementations§
Source§impl Clone for AuthPacket
impl Clone for AuthPacket
Source§fn clone(&self) -> AuthPacket
fn clone(&self) -> AuthPacket
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthPacket
impl Debug for AuthPacket
Source§impl DecodePacket for AuthPacket
impl DecodePacket for AuthPacket
Source§impl Default for AuthPacket
impl Default for AuthPacket
Source§fn default() -> AuthPacket
fn default() -> AuthPacket
Returns the “default value” for a type. Read more
Source§impl EncodePacket for AuthPacket
impl EncodePacket for AuthPacket
Source§impl Packet for AuthPacket
impl Packet for AuthPacket
fn packet_type(&self) -> PacketType
Source§impl PartialEq for AuthPacket
impl PartialEq for AuthPacket
impl Eq for AuthPacket
impl StructuralPartialEq for AuthPacket
Auto Trait Implementations§
impl Freeze for AuthPacket
impl RefUnwindSafe for AuthPacket
impl Send for AuthPacket
impl Sync for AuthPacket
impl Unpin for AuthPacket
impl UnwindSafe for AuthPacket
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more