Enum iso7816_tlv::TlvError
source · pub enum TlvError {
InvalidInput,
TagIsRFU,
ParseIntError,
TruncatedInput,
Inconsistant,
InvalidLength,
}
Expand description
Error definition for TLV data as defined in [ISO7816-4].
Variants§
InvalidInput
Invalid input encountered
TagIsRFU
Read tag is reserved for future usage
ParseIntError
conversion error
TruncatedInput
parsing error
Inconsistant
Inconsistant (tag, value) pair
InvalidLength
Read invalid length value
Trait Implementations§
source§impl From<EndOfInput> for TlvError
impl From<EndOfInput> for TlvError
source§fn from(_: EndOfInput) -> Self
fn from(_: EndOfInput) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for TlvError
impl From<ParseIntError> for TlvError
source§fn from(_: ParseIntError) -> Self
fn from(_: ParseIntError) -> Self
Converts to this type from the input type.
source§impl PartialEq for TlvError
impl PartialEq for TlvError
impl StructuralPartialEq for TlvError
Auto Trait Implementations§
impl RefUnwindSafe for TlvError
impl Send for TlvError
impl Sync for TlvError
impl Unpin for TlvError
impl UnwindSafe for TlvError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more