Enum cbm::disk::DiskError[][src]

pub enum DiskError {
    Unknown,
    ReadOnly,
    InvalidLocation,
    InvalidOffset,
    InvalidHeader,
    InvalidBAM,
    InvalidLayout,
    InvalidRecord,
    ReadOverflow,
    ReadUnderrun,
    WriteUnderrun,
    Unformatted,
    NotFound,
    ChainLoop,
    InvalidChainLink,
    InvalidRelativeFile,
    Unpositioned,
    FilenameTooLong,
    FileExists,
    DiskFull,
    InvalidRecordIndex,
    UnknownFormat,
    GEOSInfoNotFound,
    RecordTooLarge,
    NonLinearFile,
}

Errors that can be returned from disk image operations. These are generally converted into io::Error.

Variants

Unknown error

Write access attempted to read-only media

Bad track or sector

Offset out of bounds

Invalid header

Invalid BAM

Invalid layout

Record out of bounds

Read overflow

Read underrun

Write underrun

Attempt to use unformatted media

File not found

Chain loop detected

Invalid chain link

Invalid relative file layout

Attempt to write a resource with no embedded position

Filename exceeds maximum length

A file with the specified filename already exists

Disk is full

Invalid record index

Unknown format

A required GEOS info block was not found.

A record exceeded the maximum size.

Attempt to linearly access non-linear file.

Methods

impl DiskError
[src]

If the provided io::Error contains a DiskError, return the underlying DiskError. If not, return None.

This is sometimes useful instead of .into() when the compiler doesn't have enough information to perform type inference. (Type ascription can't come soon enough.)

Trait Implementations

impl Clone for DiskError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for DiskError
[src]

Formats the value using the given formatter. Read more

impl PartialEq for DiskError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Error for DiskError
[src]

Provide terse descriptions of the errors.

For errors which encapsulate another error, allow the caller to fetch the contained error.

impl Display for DiskError
[src]

Provide human-readable descriptions of the errors

impl Into<Error> for DiskError
[src]

Performs the conversion.

impl From<Error> for DiskError
[src]

Performs the conversion.

impl PartialEq<Error> for DiskError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialEq<DiskError> for Error
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for DiskError

impl Sync for DiskError