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
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.
Trait Implementations
Performs the conversion.