pub enum Tcv1Error {
InvalidUtf8 {
valid_up_to: usize,
error_len: Option<usize>,
},
InvalidJson {
offset: usize,
message: &'static str,
},
DuplicateObjectKey {
key: String,
offset: usize,
},
NfcKeyCollision {
first: String,
second: String,
offset: usize,
},
IntegerOutOfRange {
offset: usize,
domain: &'static str,
},
Binary64OutOfRange {
offset: usize,
},
NestingTooDeep,
LengthOverflow,
NonFiniteBinary64,
ExpectedObject,
MissingObjectKey(String),
AmbiguousObjectKey(String),
}Expand description
Parse or encoding failure for the strict TCV1 domain.
Variants§
InvalidUtf8
InvalidJson
DuplicateObjectKey
NfcKeyCollision
IntegerOutOfRange
Binary64OutOfRange
NestingTooDeep
LengthOverflow
NonFiniteBinary64
ExpectedObject
MissingObjectKey(String)
AmbiguousObjectKey(String)
Trait Implementations§
impl Eq for Tcv1Error
Source§impl Error for Tcv1Error
impl Error for Tcv1Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
impl StructuralPartialEq for Tcv1Error
Auto Trait Implementations§
impl Freeze for Tcv1Error
impl RefUnwindSafe for Tcv1Error
impl Send for Tcv1Error
impl Sync for Tcv1Error
impl Unpin for Tcv1Error
impl UnsafeUnpin for Tcv1Error
impl UnwindSafe for Tcv1Error
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.