Struct libmount::OSError [−][src]
pub struct OSError(_, _);
The raw os error
This is a wrapper around io::Error
providing explain()
method
Note: you need to explain as fast as possible, because during explain library makes some probes for different things in filesystem, and if anything changes it may give incorrect results.
You should always explain()
the errors, unless you are trying lots of
mounts for bruteforcing or other similar thing and you are concerned of
performance. Usually library does stat()
and similar things which are
much faster than mount anyway. Also explaining is zero-cost in the success
path.
Methods
impl OSError
[src]
impl OSError
Trait Implementations
impl Display for OSError
[src]
impl Display for OSError
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl StdError for OSError
[src]
impl StdError for OSError
fn cause(&self) -> Option<&StdError>
[src]
fn cause(&self) -> Option<&StdError>
The lower-level cause of this error, if any. Read more
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
impl Debug for OSError
[src]
impl Debug for OSError