pub struct Reply<'packet> { /* private fields */ }Expand description
An authentication reply packet received from a server.
Implementations§
Source§impl<'packet> Reply<'packet>
impl<'packet> Reply<'packet>
Sourcepub fn status(&self) -> &Status
pub fn status(&self) -> &Status
Gets the status of this authentication exchange, as returned from the server.
Sourcepub fn server_message(&self) -> &FieldText<'packet>
pub fn server_message(&self) -> &FieldText<'packet>
Returns the message meant to be displayed to the user.
Sourcepub fn flags(&self) -> &ReplyFlags
pub fn flags(&self) -> &ReplyFlags
Gets the flags returned from the server as part of this authentication exchange.
Source§impl Reply<'_>
impl Reply<'_>
Sourcepub fn extract_total_length(buffer: &[u8]) -> Result<u32, DeserializeError>
pub fn extract_total_length(buffer: &[u8]) -> Result<u32, DeserializeError>
Attempts to extract the claimed reply packed body length from a buffer.
Trait Implementations§
Source§impl PacketBody for Reply<'_>
impl PacketBody for Reply<'_>
Source§const TYPE: PacketType = PacketType::Authentication
const TYPE: PacketType = PacketType::Authentication
Type of the packet (one of authentication, authorization, or accounting).
Source§const REQUIRED_FIELDS_LENGTH: usize = 6usize
const REQUIRED_FIELDS_LENGTH: usize = 6usize
Length of body just including required fields.
Source§fn required_minor_version(&self) -> Option<MinorVersion>
fn required_minor_version(&self) -> Option<MinorVersion>
Required protocol minor version based on the contents of the packet body. Read more
impl<'packet> Eq for Reply<'packet>
impl<'packet> StructuralPartialEq for Reply<'packet>
Auto Trait Implementations§
impl<'packet> Freeze for Reply<'packet>
impl<'packet> RefUnwindSafe for Reply<'packet>
impl<'packet> Send for Reply<'packet>
impl<'packet> Sync for Reply<'packet>
impl<'packet> Unpin for Reply<'packet>
impl<'packet> UnwindSafe for Reply<'packet>
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