Enum p2p::CryptoError[]

pub enum CryptoError {
    Serialize(SerialisationError),
    Deserialize(SerialisationError),
    Encrypt(SecureSerialiseError),
    Decrypt(SecureSerialiseError),
    EncryptForbidden,
    DecryptForbidden,
}

Encryption related errors.

Variants

Failure to serialize structure into bytes.

Failure to deserialize bytes into structure.

Encryption failure.

Failure to decrypt bytes.

Encrypt operation is forbidden withing current state.

Decrypt operation is forbidden withing current state.

Trait Implementations

impl Debug for CryptoError
[src]

Formats the value using the given formatter. Read more

impl Display for CryptoError

Formats the value using the given formatter. Read more

impl Error for CryptoError

This method is soft-deprecated. Read more

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

Auto Trait Implementations

impl Send for CryptoError

impl Sync for CryptoError