pub struct PassedCredentials { /* private fields */ }Expand description
Credentials passed over of socket.
Implementations§
Source§impl PassedCredentials
impl PassedCredentials
Sourcepub fn new(
unix_user_id: Uid,
unix_primary_group_id: Gid,
process_id: Pid,
) -> Self
pub fn new( unix_user_id: Uid, unix_primary_group_id: Gid, process_id: Pid, ) -> Self
Create a new PassedCredentials instance.
Sourcepub fn unix_user_id(&self) -> Uid
pub fn unix_user_id(&self) -> Uid
The numeric Unix user ID, as defined by POSIX.
Sourcepub fn process_id(&self) -> Pid
pub fn process_id(&self) -> Pid
The numeric process ID, on platforms that have this concept.
On Unix, this is the process ID defined by POSIX.
Sourcepub fn unix_primary_group_id(&self) -> Gid
pub fn unix_primary_group_id(&self) -> Gid
The numeric Unix group ID, as defined by POSIX.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PassedCredentials
impl RefUnwindSafe for PassedCredentials
impl Send for PassedCredentials
impl Sync for PassedCredentials
impl Unpin for PassedCredentials
impl UnsafeUnpin for PassedCredentials
impl UnwindSafe for PassedCredentials
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