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]

Trait Implementations

impl Display for OSError
[src]

Formats the value using the given formatter. Read more

impl StdError for OSError
[src]

The lower-level cause of this error, if any. Read more

A short description of the error. Read more

impl Debug for OSError
[src]

Formats the value using the given formatter.