Method lrs::socket::Socket::peer_credentials

Retrieves the credentials of a connected peer.

Syntax

impl Socket {
    fn peer_credentials(&self) -> Result<Credentials, Errno>
}

Return value

Returns the credentials of the peer.

Remarks

This is only implemented for Unix sockets.

See also