Enum qcow2::Error [] [src]

pub enum Error {
    Io(Error),
    Poison(String),
    FileType,
    Version(u32),
    UnsupportedFeature(String),
    FileFormat(String),
    Internal(String),
}

The error type for Qcow2 operations.

Variants

Io(Error)

The underlying source of a Qcow2 reported an I/O error.

Poison(String)

A synchronization primitive reported being poisoned. See std::sync::PoisonError.

FileType

The file being opened is not a qcow2 file.

Version(u32)

The file being opened has an unsupported version.

UnsupportedFeature(String)

A feature unsupported by this library was detected.

FileFormat(String)

An error was detected in a qcow2 file. The file may be corrupt.

Internal(String)

An internal error was detected, there must be a bug in this library.

Trait Implementations

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<Error> for Error
[src]

fn from(err: Error) -> Error

Performs the conversion.

impl<T> From<PoisonError<T>> for Error
[src]

fn from(err: PoisonError<T>) -> Error

Performs the conversion.

impl StdError for Error
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&StdError>

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

impl Display for Error
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.