#[repr(C)]pub struct UCred {
pub pid: Pid,
pub uid: Uid,
pub gid: Gid,
}
Expand description
UNIX credentials of socket peer, for use with get_socket_peercred
SendAncillaryMessage::ScmCredentials
and
RecvAncillaryMessage::ScmCredentials
.
Fields§
§pid: Pid
Process ID of peer
uid: Uid
User ID of peer
gid: Gid
Group ID of peer
Trait Implementations§
impl Copy for UCred
impl Eq for UCred
impl StructuralPartialEq for UCred
Auto Trait Implementations§
impl Freeze for UCred
impl RefUnwindSafe for UCred
impl Send for UCred
impl Sync for UCred
impl Unpin for UCred
impl UnwindSafe for UCred
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)