1 2 3 4 5 6 7 8 9 10
#[derive(Copy, Clone, Debug)] pub struct PeerCreds { pub(crate) pid: u32, } impl PeerCreds { #[inline] pub fn pid(&self) -> Option<u32> { Some(self.pid) } } pub type Pid = u32;