Enum lightning::ln::msgs::DecodeError [] [src]

pub enum DecodeError {
    UnknownRealmByte,
    BadPublicKey,
    WrongLength,
}

Variants

Unknown realm byte in an OnionHopData packet

Failed to decode a public key (ie it's invalid)

Buffer not of right length (either too short or too long)

Trait Implementations

impl Debug for DecodeError
[src]

[src]

Formats the value using the given formatter.

impl Error for DecodeError
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

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

impl Display for DecodeError
[src]

[src]

Formats the value using the given formatter. Read more