[−][src]Enum lightning::ln::msgs::DecodeError
An error in decoding a message or struct.
Variants
A version byte specified something we don't know how to handle. Includes unknown realm byte in an OnionHopData packet
Unknown feature mandating we fail to parse message (eg TLV with an even, unknown type)
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, TLV was syntactically incorrect, etc
Buffer too short
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 From<Error> for DecodeError
[src]
Auto Trait Implementations
impl !RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl !UnwindSafe for DecodeError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,