[][src]Enum mla::errors::FailSafeReadError

pub enum FailSafeReadError {
    NoError,
    UnexpectedEOFOnNextBlock,
    IOErrorOnNextBlock(Error),
    ErrorOnNextBlock(Error),
    ErrorInFile(ErrorString),
    ArchiveFileIDReuse(ArchiveFileID),
    FilenameReuse(String),
    ArchiveFileIDAlreadyClose(ArchiveFileID),
    ContentForUnknownFile(ArchiveFileID),
    EOFForUnknownFile(ArchiveFileID),
    UnfinishedFiles {
        filenames: Vec<String>,
        stopping_error: Box<FailSafeReadError>,
    },
    EndOfOriginalArchiveData,
    FailSafeReadInternalError,
    HashDiffers {
        expected: Vec<u8>,
        obtained: Vec<u8>,
    },
}

Variants

NoError

Everything ends correctly

UnexpectedEOFOnNextBlock

An unexpected EOF occurs while getting the next block

IOErrorOnNextBlock(Error)

An IO error occurs while reading the next block

ErrorOnNextBlock(Error)

A Error occurs while reading the next block

ErrorInFile(ErrorString)

An error occurs in the middle of a file

ArchiveFileIDReuse(ArchiveFileID)

A file ID is being reused

FilenameReuse(String)

A filename is being reused

ArchiveFileIDAlreadyClose(ArchiveFileID)

Data for a file already closed

ContentForUnknownFile(ArchiveFileID)

Content for an unknown file

EOFForUnknownFile(ArchiveFileID)

Termination of an unknwown file

UnfinishedFiles

Wraps an already existing error and indicates which files are not finished (a file can be finished but uncompleted)

Fields of UnfinishedFiles

filenames: Vec<String>stopping_error: Box<FailSafeReadError>
EndOfOriginalArchiveData

End of original archive reached - this is the best case

FailSafeReadInternalError

Error in the FailSafeReader internal state

HashDiffers

The file's hash does not correspond to the expected one

Fields of HashDiffers

expected: Vec<u8>obtained: Vec<u8>

Trait Implementations

impl Debug for FailSafeReadError[src]

impl Display for FailSafeReadError[src]

impl Error for FailSafeReadError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,