Struct rustix::io::OwnedFd[][src]

#[repr(transparent)]
pub struct OwnedFd { /* fields omitted */ }
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

Borrows the file descriptor. Read more

Extracts the raw file descriptor. Read more

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Constructs a new instance of Self from the given file descriptor. Read more

Constructs a new instance of Self from the given file descriptor converted from into_owned. Read more

Constructs a new instance of Self from the given raw file descriptor. Read more

Consumes this object, returning the underlying file descriptor. Read more

Consumes this object, returning the raw underlying file descriptor. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Borrows the reference. Read more

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

Returns the raw value.

Returns the raw value.

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.

Constructs a new instance of Self from the given filelike object. Read more

Constructs a new instance of Self from the given filelike object converted from into_owned. Read more

Constructs Self from the raw value.

Constructs Self from the raw value.

Constructs a new instance of Self from the given socketlike object.

Constructs a new instance of Self from the given socketlike object converted from into_owned. Read more

Performs the conversion.

Consumes this object, returning the underlying filelike object. Read more

Returns the raw value.

Consumes this object, returning the underlying socketlike object.

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.