pub struct AuthenticationInfo<'a> { /* private fields */ }Expand description
Information about a successful authentication.
Implementations§
Source§impl<'a> AuthenticationInfo<'a>
impl<'a> AuthenticationInfo<'a>
Sourcepub fn new(
id: Option<u32>,
user: &'a [u8],
dir: &'a [u8],
location: &'a [u8],
) -> AuthenticationInfo<'a>
pub fn new( id: Option<u32>, user: &'a [u8], dir: &'a [u8], location: &'a [u8], ) -> AuthenticationInfo<'a>
Create a new instance.
id is the user ID, if any. user is the username. dir is a directory associated with
this user (usually their home directory), and location is the location of the mount
point. Note that usually dir is the same as location.
Auto Trait Implementations§
impl<'a> Freeze for AuthenticationInfo<'a>
impl<'a> RefUnwindSafe for AuthenticationInfo<'a>
impl<'a> Send for AuthenticationInfo<'a>
impl<'a> Sync for AuthenticationInfo<'a>
impl<'a> Unpin for AuthenticationInfo<'a>
impl<'a> UnwindSafe for AuthenticationInfo<'a>
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