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

Method new_unnamed

src/backend/linux_raw/net/addr.rs:83–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81 /// [Linux]: https://www.man7.org/linux/man-pages/man7/unix.7.html
82 #[inline]
83 pub fn new_unnamed() -> Self {
84 Self {
85 unix: Self::init(),
86 len: offsetof_sun_path() as SocketAddrLen,
87 }
88 }
89
90 const fn init() -> c::sockaddr_un {
91 c::sockaddr_un {

Callers

nothing calls this directly

Calls 2

offsetof_sun_pathFunction · 0.70
initFunction · 0.50

Tested by

no test coverage detected