[−][src]Enum simple_tlv::ErrorKind
Error type.
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Operation failed due to previous error
Invalid tag
Length greater than u16::MAX
Incorrect length for a given field
Fields of Length
tag: Tag
Tag type of the value being decoded
Integer overflow occurred (library bug!)
Message is longer than SIMPLE-TLV's limits support
Undecoded trailing data at end of message
Fields of TrailingData
Unexpected end-of-message/nested field when decoding
Encoded message is shorter than the expected length
(i.e. an Encodable
impl on a particular type has a buggy encoded_length
)
Unexpected tag
Fields of UnexpectedTag
Implementations
impl ErrorKind
[src]
pub fn at(self, position: Length) -> Error
[src]
Annotate an ErrorKind
with context about where it occurred,
returning an error.
Trait Implementations
impl Clone for ErrorKind
[src]
fn clone(&self) -> ErrorKind
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ErrorKind
[src]
impl Debug for ErrorKind
[src]
impl Display for ErrorKind
[src]
impl Eq for ErrorKind
[src]
impl From<ErrorKind> for Error
[src]
impl PartialEq<ErrorKind> for ErrorKind
[src]
impl StructuralEq for ErrorKind
[src]
impl StructuralPartialEq for ErrorKind
[src]
Auto Trait Implementations
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,
pub 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, 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.
pub 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>,