Struct memfile::FromFdError[][src]

pub struct FromFdError<T> { /* fields omitted */ }
Expand description

Error returned when the file passed to MemFile::from_file is not a memfd.

This struct contains the std::io::Error that occurred and the original value passed to from_file. It is also directly convertible to std::io::Error, so you can pass it up using the ? operator from a function that returns an std::io::Result.

Implementations

Get a reference to the I/O error.

Get a reference to the original file object.

Consume the struct and return the I/O error and the original file object as tuple.

Consume the struct and return the I/O error.

Consume the struct and return the original file object.

Trait Implementations

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. 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.