Enum lightning_encoding::Error [−][src]
pub enum Error {
Io(IoError),
BigSizeNotCanonical,
BigSizeEof,
DataNotEntirelyConsumed,
DataIntegrityError(String),
Tlv(TlvError),
EnumValueNotKnown(&'static str, usize),
}Variants
Io(IoError)
Tuple Fields
0: IoErrorI/O error
BigSizeNotCanonical
decoded BigSize is not canonical
BigSizeEof
unexpected EOF while decoding BigSize value
DataNotEntirelyConsumed
Returned by the convenience method
crate::LightningDecode::lightning_decode if not all provided data
were consumed during decoding process
DataIntegrityError(String)
Tuple Fields
0: StringConvenience type never for data structures using StrictDecode
Tlv(TlvError)
Tuple Fields
0: TlvErrorTLV encoding error
EnumValueNotKnown(&'static str, usize)
An unsupported value {0} for enum {0} encountered during decode
operation
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more