Enum cocoon::Error[][src]

pub enum Error {
    Io(Error),
    UnrecognizedFormat,
    Cryptography,
    TooLarge,
    TooShort,
}
Expand description

Error variants produced by the Cocoon API.

Variants

Io(Error)

I/o error during read/write operation (Cocoon::dump, Cocoon::parse).

Tuple Fields of Io

0: Error
UnrecognizedFormat

Format is not recognized. Probably corrupted.

Cryptography

Cryptographic error. There could be a few reasons:

  1. Integrity is compromised.
  2. Password is invalid.
TooLarge

Container is too large to get processed on the current architecture. E.g. it’s not possible to process a container larger than 4 GB on 32-bit architecture.

TooShort

Buffer is too short and barely holds all data to decrypt, inconsistent length encoded to the header.

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.