#[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§
source§impl PartialEq for UCred
impl PartialEq for UCred
impl Copy for UCred
impl Eq for UCred
impl StructuralEq for UCred
impl StructuralPartialEq for UCred
Auto Trait Implementations§
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