[][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 From<Error> for DecodeError
[src]

impl Debug for DecodeError
[src]

impl Display for DecodeError
[src]

impl Error for DecodeError
[src]

fn cause(&self) -> Option<&dyn Error>
1.0.0
[src]

Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

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

fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0
[src]

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

Auto Trait Implementations

impl Send for DecodeError

impl Sync for DecodeError

Blanket Implementations

impl<T> From for T
[src]

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

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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