Skip to main content

peer_uid

Function peer_uid 

Source
pub fn peer_uid<F: AsFd>(sock: &F) -> Result<u32>
Expand description

Peer uid from SO_PEERCRED on Linux, or getpeereid on BSD/macOS.

ยงErrors

Returns an error when the socket option cannot be read, or this OS cannot report peer credentials.