Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
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
"I had many questions during the example implementations but "where do I find that" was none of them. [...] Thanks, docs team, you are doing great work..."

Search tips

Type anything to search across articles, videos (including conference talks), podcasts, research, crates, and Rust API documentation. These operators give you finer control — click an example to try it.

Find pages containing all your words. Pages where the words appear together rank higher.
Quote part of your query to keep those words together as an exact phrase within a larger search.
Wrap the whole query in quotes for a verbatim search that matches text exactly, punctuation and all — perfect for Rust syntax. Needs at least 3 characters.
Put ! first to open the top result immediately. Quote the whole query for a literal leading bang, as in '!Send'. Bangs elsewhere, such as println!, stay literal. Browser and launcher shortcuts can invoke this directly. See search integrations.
Limit results to a single site. Works on its own () too. One site: per search.

Use the tabs and filters above the results to narrow by content type, publication year, and sort order.