#[repr(transparent)]
pub struct OwnedFd { /* private fields */ }
Expand description

A wrapper around io_lifetimes::OwnedFd which closes the file descriptor using rustix’s own close rather than libc’s close.

Trait Implementations

A version of as_raw_fd for use with Winsock2 API. Read more

Borrows the socket.

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Performs the conversion.

Performs the conversion.

A version of from_fd for use with Winsock2 API. Read more

A version of from_raw_fd for use with Winsock2 API. Read more

A version of into_fd for use with Winsock2 API. Read more

A version of into_raw_fd for use with Winsock2 API. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Borrows the reference.

Return a borrowing view of a resource which dereferences to a &Target or &mut Target. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.