pub struct Request<'packet> { /* private fields */ }Expand description
An authorization request packet body, including arguments.
Implementations§
Source§impl<'packet> Request<'packet>
impl<'packet> Request<'packet>
Sourcepub fn new(
method: AuthenticationMethod,
authentication_context: AuthenticationContext,
user_information: UserInformation<'packet>,
arguments: Arguments<'packet>,
) -> Self
pub fn new( method: AuthenticationMethod, authentication_context: AuthenticationContext, user_information: UserInformation<'packet>, arguments: Arguments<'packet>, ) -> Self
Assembles an authorization request packet from its fields.
Trait Implementations§
Source§impl PacketBody for Request<'_>
impl PacketBody for Request<'_>
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 = 8usize
const REQUIRED_FIELDS_LENGTH: usize = 8usize
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 Request<'packet>
impl<'packet> StructuralPartialEq for Request<'packet>
Auto Trait Implementations§
impl<'packet> Freeze for Request<'packet>
impl<'packet> RefUnwindSafe for Request<'packet>
impl<'packet> Send for Request<'packet>
impl<'packet> Sync for Request<'packet>
impl<'packet> Unpin for Request<'packet>
impl<'packet> UnwindSafe for Request<'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