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

Method fd

src/backend/linux_raw/fs/dir.rs:65–67  ·  view source on GitHub ↗
(&'a self)

Source from the content-addressed store, hash-verified

63 #[inline]
64 #[doc(alias = "dirfd")]
65 pub fn fd<'a>(&'a self) -> io::Result<BorrowedFd<'a>> {
66 Ok(self.fd.as_fd())
67 }
68
69 /// Borrow `fd` and construct a `Dir` that reads entries from the given
70 /// directory file descriptor.

Callers

nothing calls this directly

Calls 1

as_fdMethod · 0.45

Tested by

no test coverage detected