MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / socket_peercred

Function socket_peercred

src/net/sockopt.rs:1691–1693  ·  view source on GitHub ↗
(fd: Fd)

Source from the content-addressed store, hash-verified

1689#[cfg(linux_kernel)]
1690#[doc(alias = "SO_PEERCRED")]
1691pub fn socket_peercred<Fd: AsFd>(fd: Fd) -> io::Result<super::UCred> {
1692 backend::net::sockopt::socket_peercred(fd.as_fd())
1693}
1694
1695/// `getsockopt(fd, SOL_SOCKET, SO_TXTIME)` — Get transmission timing configuration.
1696#[cfg(all(target_os = "linux", feature = "time"))]

Callers 3

test_unix_peercredFunction · 0.50

Calls 1

as_fdMethod · 0.45

Tested by 3

test_unix_peercredFunction · 0.40