Enum libwhisper::errors::WhisperError
[−]
pub enum WhisperError { InvalidReadyFrame, InvalidHelloFrame, InvalidPublicKey, DecryptionFailed, InvalidWelcomeFrame, InvalidInitiateFrame, IncompleteFrame, InvalidSessionState, BadFrame, ExpiredSession, }
Error kinds returns by this library.
Variants
InvalidReadyFrame
Server sent invalid payload for Ready frame.
InvalidHelloFrame
Client sent invalid payload for Hello frame.
InvalidPublicKey
Public key failed validation.
DecryptionFailed
Decryption of payload failed.
InvalidWelcomeFrame
Server sent invalid Welcome frame.
InvalidInitiateFrame
Client sent invalid Initiate frame.
IncompleteFrame
Not having enough bytes to decode frame.
InvalidSessionState
Either restarting a handshake or forgetting to do handshake at all.
BadFrame
Enough bytes to decode, but bytes make no sense.
ExpiredSession
Trying to use expired session.