Enum lightning_encoding::Error
source · pub enum Error {
Io(IoError),
BigSizeNotCanonical,
BigSizeEof,
BigSizeNoValue,
DataNotEntirelyConsumed,
DataIntegrityError(String),
Tlv(TlvError),
EnumValueNotKnown(&'static str, usize),
TooLargeData(usize),
}
Variants§
Io(IoError)
I/O error
BigSizeNotCanonical
decoded BigSize is not canonical
BigSizeEof
unexpected EOF while decoding BigSize value
BigSizeNoValue
Indicates absence of BigSize value. Used in TLV stream reading
DataNotEntirelyConsumed
not all provided data were consumed during decoding process
DataIntegrityError(String)
Custom type-specific error
Tlv(TlvError)
TLV encoding error
EnumValueNotKnown(&'static str, usize)
unsupported value {0}
for enum {0}
encountered during decode
operation
TooLargeData(usize)
data size {0} exceeds maximum allowed for the lightning message
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()