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

Method nodename

src/system.rs:71–73  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

69 /// This corresponds to the `gethostname` value.
70 #[inline]
71 pub fn nodename(&self) -> &CStr {
72 Self::to_cstr(self.0.nodename.as_ptr().cast())
73 }
74
75 /// `release`—Operating system release version string.
76 #[inline]

Callers

nothing calls this directly

Calls 1

as_ptrMethod · 0.45

Tested by

no test coverage detected