Enum popsicle::DiskError
[−]
[src]
pub enum DiskError { Directory { dir: &'static str, why: Error, }, UTF8 { dir: PathBuf, }, NoDisk { disk: String, why: Error, }, UnmountStatus { path: OsString, status: ExitStatus, }, UnmountCommand { path: OsString, why: Error, }, AlreadyMounted { arg: String, source: OsString, dest: OsString, }, NotABlock { arg: String, }, Metadata { arg: String, why: Error, }, Open { disk: String, why: Error, }, Write { disk: String, why: Error, }, WriteEOF { disk: String, }, Flush { disk: String, why: Error, }, SeekInvalid { disk: String, invalid: u64, }, Seek { disk: String, why: Error, }, Verify { disk: String, why: Error, }, VerifyEOF { disk: String, }, VerifyMismatch { disk: String, x: usize, y: usize, }, }
Variants
Directory
Fields of Directory
dir: &'static str | |
why: Error |
UTF8
Fields of UTF8
dir: PathBuf |
NoDisk
Fields of NoDisk
disk: String | |
why: Error |
UnmountStatus
Fields of UnmountStatus
path: OsString | |
status: ExitStatus |
UnmountCommand
Fields of UnmountCommand
path: OsString | |
why: Error |
AlreadyMounted
Fields of AlreadyMounted
arg: String | |
source: OsString | |
dest: OsString |
NotABlock
Fields of NotABlock
arg: String |
Metadata
Fields of Metadata
arg: String | |
why: Error |
Open
Fields of Open
disk: String | |
why: Error |
Write
Fields of Write
disk: String | |
why: Error |
WriteEOF
Fields of WriteEOF
disk: String |
Flush
Fields of Flush
disk: String | |
why: Error |
SeekInvalid
Fields of SeekInvalid
disk: String | |
invalid: u64 |
Seek
Fields of Seek
disk: String | |
why: Error |
Verify
Fields of Verify
disk: String | |
why: Error |
VerifyEOF
Fields of VerifyEOF
disk: String |
VerifyMismatch
Fields of VerifyMismatch
disk: String | |
x: usize | |
y: usize |
Trait Implementations
impl Debug for DiskError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Fail for DiskError
[src]
fn cause(&self) -> Option<&Fail>
[src]
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
Provides context for this failure. Read more
fn compat(self) -> Compat<Self>
[src]
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more
fn causes(&self) -> Causes
[src]
Returns a iterator over the causes of this Fail
with itself as the first item and the root_cause
as the final item. Read more
fn root_cause(&self) -> &(Fail + 'static)
[src]
Returns the "root cause" of this Fail
- the last value in the cause chain which does not return an underlying cause
. Read more