RawFd
std
1.92.0-nightly
(5c7ae0c7e 2025-10-02)
RawFd
Trait Implementations
AsRawFd
FromRawFd
IntoRawFd
In std::
os::
fd::
raw
std
::
os
::
fd
::
raw
Type Alias
RawFd
Copy item path
1.66.0
·
Source
pub type RawFd =
c_int
;
Available on
(Unix or HermitCore or
target_os=trusty
or WASI) and non-HermitCore
only.
Expand description
Raw file descriptors.
Trait Implementations
§
1.48.0
·
Source
§
impl
AsRawFd
for
RawFd
Source
§
fn
as_raw_fd
(&self) ->
RawFd
Extracts the raw file descriptor.
Read more
1.48.0
·
Source
§
impl
FromRawFd
for
RawFd
Source
§
unsafe fn
from_raw_fd
(fd:
RawFd
) ->
RawFd
Constructs a new instance of
Self
from the given raw file descriptor.
Read more
1.48.0
·
Source
§
impl
IntoRawFd
for
RawFd
Source
§
fn
into_raw_fd
(self) ->
RawFd
Consumes this object, returning the raw underlying file descriptor.
Read more