Enum libwhisper::errors::WhisperError []

pub enum WhisperError {
    InvalidReadyFrame,
    InvalidHelloFrame,
    InvalidPublicKey,
    DecryptionFailed,
    InvalidWelcomeFrame,
    InvalidInitiateFrame,
    IncompleteFrame,
    InvalidSessionState,
    BadFrame,
    ExpiredSession,
}

Error kinds returns by this library.

Variants

Server sent invalid payload for Ready frame.

Client sent invalid payload for Hello frame.

Public key failed validation.

Decryption of payload failed.

Server sent invalid Welcome frame.

Client sent invalid Initiate frame.

Not having enough bytes to decode frame.

Either restarting a handshake or forgetting to do handshake at all.

Enough bytes to decode, but bytes make no sense.

Trying to use expired session.

Trait Implementations

impl Debug for WhisperError
[src]

[src]

Formats the value using the given formatter.

impl Display for WhisperError

Formats the value using the given formatter. Read more

impl Error for WhisperError

A short description of the error. Read more

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