pub struct PeerCred {
pub uid: u32,
pub gid: u32,
pub pid: Option<i32>,
}Expand description
Credentials of a connected Unix-socket peer.
pid is None on platforms that don’t report it (e.g. some macOS versions);
uid/gid are always available.
Fields§
§uid: u32The peer process’s effective user ID.
gid: u32The peer process’s effective group ID.
pid: Option<i32>The peer process’s PID, if the platform reports it.
Trait Implementations§
impl Copy for PeerCred
impl Eq for PeerCred
impl StructuralPartialEq for PeerCred
Auto Trait Implementations§
impl Freeze for PeerCred
impl RefUnwindSafe for PeerCred
impl Send for PeerCred
impl Sync for PeerCred
impl Unpin for PeerCred
impl UnsafeUnpin for PeerCred
impl UnwindSafe for PeerCred
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.