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]
impl<E: StorageError> Display for SelfEncryptionError<E>
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<E: StorageError> StdError for SelfEncryptionError<E>
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
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>
[src]
Performs the conversion.
impl<E: StorageError> From<()> for SelfEncryptionError<E>
[src]
fn from(_error: ()) -> SelfEncryptionError<E>
[src]
Performs the conversion.
impl<E: StorageError> From<IoError> for SelfEncryptionError<E>
[src]
fn from(error: IoError) -> SelfEncryptionError<E>
[src]
Performs the conversion.
impl<E: StorageError> From<E> for SelfEncryptionError<E>
[src]
fn from(error: E) -> SelfEncryptionError<E>
[src]
Performs the conversion.