pub enum IndexEncodeErrorKind {
TooFewValues {
expected: usize,
actual: usize,
},
TooManyValues {
expected: usize,
},
WrongValueKind {
expected: IndexValueKind,
actual: IndexValueKind,
},
NegativeInteger32 {
value: i32,
},
FixedLength {
expected: usize,
actual: usize,
},
ValueTooLong {
actual: usize,
maximum: usize,
},
LengthPrefixOverflow {
length: usize,
},
SuffixTooLong {
actual: usize,
maximum: usize,
},
ConstraintViolation(IndexConstraintViolation),
IndeterminateConstraint,
ArithmeticOverflow,
}Expand description
Stable reason canonical encoding failed.
Variants§
TooFewValues
The value sequence ended before every schema component received a value.
Fields
TooManyValues
The value sequence contains data after every schema component was encoded.
WrongValueKind
A value’s semantic kind does not match its schema component.
Fields
expected: IndexValueKindContains the semantic kind required by the schema component.
actual: IndexValueKindContains the supplied semantic kind.
NegativeInteger32
A negative Integer32 cannot be represented by an unsigned OID arc.
FixedLength
A fixed-width value has the wrong number of arcs.
Fields
ValueTooLong
One semantic value exceeds the per-value arc limit.
Fields
LengthPrefixOverflow
A value length cannot be represented by the required u32 length arc.
SuffixTooLong
Adding a component would exceed the complete suffix arc limit.
Fields
ConstraintViolation(IndexConstraintViolation)
A value conflicts with known effective MIB constraints.
IndeterminateConstraint
Unresolved metadata prevents the codec from proving the value valid.
ArithmeticOverflow
Computing an encoded arc count overflowed usize.
Trait Implementations§
Source§impl Clone for IndexEncodeErrorKind
impl Clone for IndexEncodeErrorKind
Source§fn clone(&self) -> IndexEncodeErrorKind
fn clone(&self) -> IndexEncodeErrorKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IndexEncodeErrorKind
impl Debug for IndexEncodeErrorKind
Source§impl Display for IndexEncodeErrorKind
impl Display for IndexEncodeErrorKind
impl Eq for IndexEncodeErrorKind
Source§impl Error for IndexEncodeErrorKind
impl Error for IndexEncodeErrorKind
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for IndexEncodeErrorKind
impl PartialEq for IndexEncodeErrorKind
impl StructuralPartialEq for IndexEncodeErrorKind
Auto Trait Implementations§
impl Freeze for IndexEncodeErrorKind
impl RefUnwindSafe for IndexEncodeErrorKind
impl Send for IndexEncodeErrorKind
impl Sync for IndexEncodeErrorKind
impl Unpin for IndexEncodeErrorKind
impl UnsafeUnpin for IndexEncodeErrorKind
impl UnwindSafe for IndexEncodeErrorKind
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
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
key and return true if they are equal.