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.
Convert error to the one providing extra useful information
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
The lower-level cause of this error, if any. Read more
The lower-level source of this error, if any. Read more
Converts the given value to a String
. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more