pub struct OwnedFd { }
Expand description
An owned file descriptor.
This closes the file descriptor on drop. It is guaranteed that nobody else will close the file descriptor.
This uses repr(transparent)
and has the representation of a host file descriptor, so it can be used in FFI in places where a file descriptor is passed as a consumed argument or returned as an owned value, and it never has the value -1
.
You can use AsFd::as_fd
to obtain a BorrowedFd
.
Creates a new OwnedFd
instance that shares the same underlying file description as the existing OwnedFd
instance.
Available on Unix only.
1.63.0 · Source§Available on Unix only.
1.63.0 · Source§Available on Unix only.
1.63.0 · Source§ Source§Takes ownership of a File
âs underlying file descriptor.
Available on Unix only.
Creates a ChildStderr
from the provided OwnedFd
.
The provided file descriptor must point to a pipe with the CLOEXEC
flag set.
Converts to this type from the input type.
1.74.0 · Source§Available on Unix only.
Creates a ChildStdin
from the provided OwnedFd
.
The provided file descriptor must point to a pipe with the CLOEXEC
flag set.
Converts to this type from the input type.
1.74.0 · Source§Available on Unix only.
Creates a ChildStdout
from the provided OwnedFd
.
The provided file descriptor must point to a pipe with the CLOEXEC
flag set.
Converts to this type from the input type.
1.63.0 · Source§ Source§Returns a File
that takes ownership of the given file descriptor.
Available on Linux only.
Source§Converts to this type from the input type.
1.87.0 · Source§ Source§Converts to this type from the input type.
1.87.0 · Source§ Source§Converts to this type from the input type.
1.63.0 · Source§Available on Unix only.
Source§Takes ownership of a file descriptor and returns a Stdio
that can attach a stream to it.
Converts to this type from the input type.
1.63.0 · Source§ Source§Converts to this type from the input type.
1.63.0 · Source§ Source§Converts to this type from the input type.
1.63.0 · Source§Available on Unix only.
Source§Converts to this type from the input type.
1.63.0 · Source§Available on Unix only.
Source§Converts to this type from the input type.
1.63.0 · Source§Available on Unix only.
Source§Converts to this type from the input type.
Source§Available on Linux only.
Source§Converts to this type from the input type.
1.87.0 · Source§ Source§Converts to this type from the input type.
1.87.0 · Source§ Source§Converts to this type from the input type.
1.63.0 · Source§ 1.63.0 · Source§ 1.63.0 · Source§ 1.63.0 · Source§Available on Unix only.
1.63.0 · Source§Available on Unix only.
1.63.0 · Source§Available on Unix only.
1.63.0 · Source§ Source§Constructs a new instance of Self
from the given raw file descriptor.
The resource pointed to by fd
must be open and suitable for assuming ownership. The resource must not require any cleanup other than close
.
Consumes this object, returning the raw underlying file descriptor.
Read more 1.70.0 · Source§RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4