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

pub enum DecodeError {
    UnknownVersion,
    UnknownRequiredFeature,
    InvalidValue,
    ShortRead,
    ExtraAddressesPerType,
    BadLengthDescriptor,
    Io(Error),
}

An error in decoding a message or struct.

Variants

UnknownVersion

A version byte specified something we don't know how to handle. Includes unknown realm byte in an OnionHopData packet

UnknownRequiredFeature

Unknown feature mandating we fail to parse message

InvalidValue

Value was invalid, eg a byte which was supposed to be a bool was something other than a 0 or 1, a public key/private key/signature was invalid, text wasn't UTF-8, etc

ShortRead

Buffer too short

ExtraAddressesPerType

node_announcement included more than one address of a given type!

BadLengthDescriptor

A length descriptor in the packet didn't describe the later data correctly

Io(Error)

Error from std::io

Trait Implementations

impl Debug for DecodeError[src]

impl Display for DecodeError[src]

impl Error for DecodeError[src]

impl From<Error> for DecodeError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.