pub struct PeerCredentials {
pub pid: u32,
pub uid: u32,
}Expand description
Peer credentials obtained from the transport layer.
Fields§
§pid: u32Process ID of the peer.
uid: u32User ID of the peer (Unix). On Windows, this is 0 (use SID instead).
Implementations§
Source§impl PeerCredentials
impl PeerCredentials
Sourcepub fn in_process() -> Self
pub fn in_process() -> Self
Credentials for an in-process subscriber (e.g. the bus host itself).
Not extracted from a socket — uses the current process’s own PID.
UID is set to u32::MAX as a sentinel (never matches a real UCred check).
Trait Implementations§
Source§impl Clone for PeerCredentials
impl Clone for PeerCredentials
Source§fn clone(&self) -> PeerCredentials
fn clone(&self) -> PeerCredentials
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PeerCredentials
impl RefUnwindSafe for PeerCredentials
impl Send for PeerCredentials
impl Sync for PeerCredentials
impl Unpin 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