pub struct Reply<'packet> { /* private fields */ }Expand description
An accounting reply packet received from a TACACS+ server.
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 server message, which may be presented to a user connected to a client.
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>
Determines how long a raw reply packet is, if applicable, based on various lengths stored in the body “header.”
Trait Implementations§
Source§impl PacketBody for Reply<'_>
impl PacketBody for Reply<'_>
Source§const TYPE: PacketType = PacketType::Accounting
const TYPE: PacketType = PacketType::Accounting
Type of the packet (one of authentication, authorization, or accounting).
Source§const REQUIRED_FIELDS_LENGTH: usize = 5usize
const REQUIRED_FIELDS_LENGTH: usize = 5usize
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