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

Function set_socket_passcred

src/net/sockopt.rs:395–397  ·  view source on GitHub ↗
(fd: Fd, value: bool)

Source from the content-addressed store, hash-verified

393#[inline]
394#[doc(alias = "SO_PASSCRED")]
395pub fn set_socket_passcred<Fd: AsFd>(fd: Fd, value: bool) -> io::Result<()> {
396 backend::net::sockopt::set_socket_passcred(fd.as_fd(), value)
397}
398
399/// `getsockopt(fd, SOL_SOCKET, SO_PASSCRED)`
400///

Callers 4

test_socket_passcredFunction · 0.50
test_unix_peercredFunction · 0.50

Calls 1

as_fdMethod · 0.45

Tested by 4

test_socket_passcredFunction · 0.40
test_unix_peercredFunction · 0.40