Enum p2p::CryptoError [−]
pub enum CryptoError { Serialize(SerialisationError), Deserialize(SerialisationError), Encrypt(SecureSerialiseError), Decrypt(SecureSerialiseError), EncryptForbidden, DecryptForbidden, }
Encryption related errors.
Variants
Serialize(SerialisationError)
Failure to serialize structure into bytes.
Deserialize(SerialisationError)
Failure to deserialize bytes into structure.
Encrypt(SecureSerialiseError)
Encryption failure.
Decrypt(SecureSerialiseError)
Failure to decrypt bytes.
EncryptForbidden
Encrypt operation is forbidden withing current state.
DecryptForbidden
Decrypt operation is forbidden withing current state.
Trait Implementations
impl Debug for CryptoError
[src]
impl Debug for CryptoError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for CryptoError
impl Display for CryptoError
impl Error for CryptoError
impl Error for CryptoError
Auto Trait Implementations
impl Send for CryptoError
impl Send for CryptoError
impl Sync for CryptoError
impl Sync for CryptoError