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
Format is not recognized. Probably corrupted.
Cryptographic error. There could be a few reasons:
- Integrity is compromised.
- Password is invalid.
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.
Buffer is too short and barely holds all data to decrypt, inconsistent length encoded to the header.