doc.rust-lang.org
pub trait FromRawFd
A trait to express the ability to construct an object from a raw file descriptor.
trait
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
fn as_raw_fd(&self) -> RawFd
Extracts the raw file descriptor.
method
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait AsRawFd
A trait to extract the raw file descriptor from an underlying object.
trait
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn try_clone(&self) -> io::Result<Self>
Creates a new OwnedFd instance that shares the same underlying file description as the existing OwnedFd instance.
method
std
Stable since 1.63.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct OwnedFd
An owned file descriptor.
struct
std
Stable since 1.63.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn try_clone_to_owned(&self) -> io::Result<OwnedFd>
Creates a new OwnedFd instance that shares the same underlying file description as the existing BorrowedFd instance.
method
std
Stable since 1.63.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const unsafe fn borrow_raw(fd: RawFd) -> Self
Returns a BorrowedFd holding the given raw file descriptor.
associated_function
std
Stable since 1.63.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct BorrowedFd<'fd>
A borrowed file descriptor.
struct
std
Stable since 1.63.0
Version 1.100.0-nightly
doc.rust-lang.org
fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor.
method
std
Stable since 1.63.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait AsFd
A trait to borrow the file descriptor from an underlying object.
trait
std
Stable since 1.63.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod fd
Owned and borrowed Unix-like file descriptors.
module
std
Stable since 1.66.0
Version 1.100.0-nightly
doc.rust-lang.org
fn as_raw_stat(&self) -> &super::raw::stat
Gain a reference to the underlying stat structure which contains the raw information returned by the OS.
method
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait MetadataExt
OS-specific extensions to fs::Metadata.
trait
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
fn set_created(self, t: SystemTime) -> Self
Set the creation time of a file.
method
std
Stable since 1.75.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait FileTimesExt
OS-specific extensions to fs::FileTimes.
trait
std
Stable since 1.75.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod fs
Darwin-specific extension traits to fs.
module
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod darwin
Platform-specific extensions to std for Darwin / Apple platforms.
module
std
Stable since 1.84.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod os
OS-specific functionality.
module
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod num
Additional functionality for numerics.
module
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn write_timeout(&self) -> io::Result<Option<Duration>>
Returns the write timeout of this socket.
method
std
Stable since 1.4.0
Version 1.100.0-nightly