Struct Auth
pub struct Auth<'a> {
pub reason_code: ReasonCode,
pub properties: &'a AuthProperties,
}Expand description
AUTH packet for enhanced authentication.
Fields§
§reason_code: ReasonCodeAuthentication reason code.
properties: &'a AuthPropertiesAUTH properties.
Implementations§
§impl<'a> Auth<'a>
impl<'a> Auth<'a>
pub const fn decode(r: &mut Reader<'a>) -> Result<Self, DecodeError>
pub const fn decode(r: &mut Reader<'a>) -> Result<Self, DecodeError>
Decodes an AUTH packet from the reader.
§Errors
Returns DecodeError if the data is malformed or contains an invalid
reason code or disallowed properties.
Trait Implementations§
impl<'a> Eq for Auth<'a>
impl<'a> StructuralPartialEq for Auth<'a>
Auto Trait Implementations§
impl<'a> Freeze for Auth<'a>
impl<'a> RefUnwindSafe for Auth<'a>
impl<'a> Send for Auth<'a>
impl<'a> Sync for Auth<'a>
impl<'a> Unpin for Auth<'a>
impl<'a> UnsafeUnpin for Auth<'a>
impl<'a> UnwindSafe for Auth<'a>
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