Lines Matching defs:OwnedFd
28 /// rather than an `OwnedFd`. It just makes a trivial copy of the raw file
41 _phantom: PhantomData<&'fd OwnedFd>,
60 pub struct OwnedFd {
86 impl OwnedFd {
87 /// Creates a new `OwnedFd` instance that shares the same underlying file handle
88 /// as the existing `OwnedFd` instance.
125 impl AsRawFd for OwnedFd {
133 impl IntoRawFd for OwnedFd {
143 impl FromRawFd for OwnedFd {
162 impl Drop for OwnedFd {
184 impl fmt::Debug for OwnedFd {
186 f.debug_struct("OwnedFd").field("fd", &self.fd).finish()
244 impl AsFd for OwnedFd {
247 // Safety: `OwnedFd` and `BorrowedFd` have the same validity