pub struct PeerCredentials {
pub pid: Option<u32>,
pub uid: Option<u32>,
pub gid: Option<u32>,
}Expand description
Who is on the other end of a local socket. A field the platform cannot report is None.
let creds = net_io::PeerCredentials { pid: Some(1), uid: None, gid: None };
assert_eq!(creds.pid, Some(1));Fields§
§pid: Option<u32>The peer’s process id.
uid: Option<u32>The peer’s user id.
gid: Option<u32>The peer’s group id.
Trait Implementations§
Source§impl Clone for PeerCredentials
impl Clone for PeerCredentials
impl Copy for PeerCredentials
Source§impl Debug for PeerCredentials
impl Debug for PeerCredentials
impl Eq for PeerCredentials
Source§impl Hash for PeerCredentials
impl Hash for PeerCredentials
Source§impl PartialEq for PeerCredentials
impl PartialEq for PeerCredentials
impl StructuralPartialEq for PeerCredentials
Auto Trait Implementations§
impl Freeze for PeerCredentials
impl RefUnwindSafe for PeerCredentials
impl Send for PeerCredentials
impl Sync for PeerCredentials
impl Unpin for PeerCredentials
impl UnsafeUnpin for PeerCredentials
impl UnwindSafe for PeerCredentials
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