pub enum DecodeError {
UnknownVersion,
UnknownRequiredFeature,
InvalidValue,
ShortRead,
ExtraAddressesPerType,
BadLengthDescriptor,
Io(Error),
}
An error in decoding a message or struct.
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
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
node_announcement included more than one address of a given type!
A length descriptor in the packet didn't describe the later data correctly
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
The lower-level cause of this error, if any. Read more
The lower-level source of this error, if any. Read more
Converts the given value to a String
. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static