#[non_exhaustive]pub struct PeerIdentity {
pub uid: Option<u32>,
pub pid: Option<u32>,
pub sid: Option<String>,
}Expand description
Who the kernel says is on the other end of a connection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.uid: Option<u32>Unix: the peer’s effective uid.
pid: Option<u32>Peer process id when the platform reports it (Linux, macOS, Windows; not the BSDs).
sid: Option<String>Windows: the peer process token’s user SID in S-1-... form.
Trait Implementations§
Source§impl Clone for PeerIdentity
impl Clone for PeerIdentity
Source§impl Debug for PeerIdentity
impl Debug for PeerIdentity
Source§impl Default for PeerIdentity
impl Default for PeerIdentity
impl Eq for PeerIdentity
Source§impl PartialEq for PeerIdentity
impl PartialEq for PeerIdentity
impl StructuralPartialEq for PeerIdentity
Auto Trait Implementations§
impl Freeze for PeerIdentity
impl RefUnwindSafe for PeerIdentity
impl Send for PeerIdentity
impl Sync for PeerIdentity
impl Unpin for PeerIdentity
impl UnsafeUnpin for PeerIdentity
impl UnwindSafe for PeerIdentity
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