pub struct UserInformation<'info> { /* private fields */ }Expand description
Some information about the user connected to a TACACS+ client.
Implementations§
Source§impl<'info> UserInformation<'info>
impl<'info> UserInformation<'info>
Source§impl<'info> UserInformation<'info>
impl<'info> UserInformation<'info>
Source§impl<'info> UserInformation<'info>
impl<'info> UserInformation<'info>
Sourcepub fn new(
user: &'info str,
port: FieldText<'info>,
remote_address: FieldText<'info>,
) -> Option<Self>
pub fn new( user: &'info str, port: FieldText<'info>, remote_address: FieldText<'info>, ) -> Option<Self>
Bundles together information about a TACACS+ client user, performing some length & ASCII checks on fields to ensure validity.
user can be any (UTF-8) string, but port and remote_address must be valid ASCII.
All three fields must also be at most 255 characters long (i.e., u8::MAX).
Trait Implementations§
Source§impl<'info> Clone for UserInformation<'info>
impl<'info> Clone for UserInformation<'info>
Source§fn clone(&self) -> UserInformation<'info>
fn clone(&self) -> UserInformation<'info>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'info> Debug for UserInformation<'info>
impl<'info> Debug for UserInformation<'info>
Source§impl<'info> Hash for UserInformation<'info>
impl<'info> Hash for UserInformation<'info>
Source§impl<'info> PartialEq for UserInformation<'info>
impl<'info> PartialEq for UserInformation<'info>
impl<'info> Eq for UserInformation<'info>
impl<'info> StructuralPartialEq for UserInformation<'info>
Auto Trait Implementations§
impl<'info> Freeze for UserInformation<'info>
impl<'info> RefUnwindSafe for UserInformation<'info>
impl<'info> Send for UserInformation<'info>
impl<'info> Sync for UserInformation<'info>
impl<'info> Unpin for UserInformation<'info>
impl<'info> UnwindSafe for UserInformation<'info>
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