pub struct Reply<'packet> { /* private fields */ }Expand description
The body of an authorization reply packet.
Implementations§
Source§impl<'packet> Reply<'packet>
impl<'packet> Reply<'packet>
Sourcepub fn server_message(&self) -> &FieldText<'packet>
pub fn server_message(&self) -> &FieldText<'packet>
Gets the message sent by the server, to be displayed to the user.
Source§impl<'packet> Reply<'packet>
impl<'packet> Reply<'packet>
Sourcepub fn extract_total_length(buffer: &[u8]) -> Result<u32, DeserializeError>
pub fn extract_total_length(buffer: &[u8]) -> Result<u32, DeserializeError>
Determines the length of a reply packet based on encoded lengths at the beginning of the packet body, if possible.
Sourcepub fn iter_arguments(&self) -> ArgumentsIterator<'_> ⓘ
pub fn iter_arguments(&self) -> ArgumentsIterator<'_> ⓘ
Returns an iterator over the arguments included in this reply packet.
Trait Implementations§
Source§impl PacketBody for Reply<'_>
impl PacketBody for Reply<'_>
Source§const TYPE: PacketType = PacketType::Authorization
const TYPE: PacketType = PacketType::Authorization
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