Enum self_encryption::SelfEncryptionError [] [src]

pub enum SelfEncryptionError<E: StorageError> {
    Compression,
    Decryption,
    Io(IoError),
    Storage(E),
}

Errors which can arise during self-encryption or -decryption.

Variants

Compression

An error during compression or decompression.

Decryption

An error within the symmetric encryption or decryption process.

Io(IoError)

A generic I/O error, likely arising from use of memmap.

Storage(E)

An error in putting or retrieving chunks from the storage object.

Trait Implementations

impl<E: Debug + StorageError> Debug for SelfEncryptionError<E>
[src]

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

Formats the value using the given formatter.

impl<E: StorageError> Display for SelfEncryptionError<E>
[src]

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

Formats the value using the given formatter.

impl<E: StorageError> StdError for SelfEncryptionError<E>
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>
1.0.0

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

impl<E: StorageError> From<CompressionError> for SelfEncryptionError<E>
[src]

fn from(_error: CompressionError) -> SelfEncryptionError<E>

Performs the conversion.

impl<E: StorageError> From<DecryptionError> for SelfEncryptionError<E>
[src]

fn from(_error: DecryptionError) -> SelfEncryptionError<E>

Performs the conversion.

impl<E: StorageError> From<IoError> for SelfEncryptionError<E>
[src]

fn from(error: IoError) -> SelfEncryptionError<E>

Performs the conversion.

impl<E: StorageError> From<E> for SelfEncryptionError<E>
[src]

fn from(error: E) -> SelfEncryptionError<E>

Performs the conversion.