pub enum SbeDecodeError {
BufferTooShort {
expected: usize,
actual: usize,
},
SchemaMismatch {
expected: u16,
actual: u16,
},
VersionMismatch {
expected: u16,
actual: u16,
},
UnknownTemplateId(u16),
GroupSizeTooLarge {
count: u32,
max: u32,
},
InvalidBlockLength {
expected: u16,
actual: u16,
},
InvalidUtf8,
InvalidEnumValue {
type_name: &'static str,
value: u16,
},
NumericOverflow {
type_name: &'static str,
},
InvalidValue {
field: &'static str,
},
}Expand description
SBE decode error.
Variants§
BufferTooShort
Buffer too short to decode expected data.
SchemaMismatch
Schema ID mismatch.
VersionMismatch
Schema version mismatch.
UnknownTemplateId(u16)
Unknown template ID.
GroupSizeTooLarge
Group count exceeds safety limit.
InvalidBlockLength
Invalid block length.
InvalidUtf8
Invalid UTF-8 in string field.
InvalidEnumValue
Invalid enum discriminant.
NumericOverflow
Numeric value cannot fit the target type.
InvalidValue
Encoded field value is invalid.
Trait Implementations§
Source§impl Clone for SbeDecodeError
impl Clone for SbeDecodeError
Source§fn clone(&self) -> SbeDecodeError
fn clone(&self) -> SbeDecodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SbeDecodeError
impl Debug for SbeDecodeError
Source§impl Display for SbeDecodeError
impl Display for SbeDecodeError
impl Eq for SbeDecodeError
Source§impl Error for SbeDecodeError
impl Error for SbeDecodeError
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()
Source§impl PartialEq for SbeDecodeError
impl PartialEq for SbeDecodeError
Source§fn eq(&self, other: &SbeDecodeError) -> bool
fn eq(&self, other: &SbeDecodeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SbeDecodeError
Auto Trait Implementations§
impl Freeze for SbeDecodeError
impl RefUnwindSafe for SbeDecodeError
impl Send for SbeDecodeError
impl Sync for SbeDecodeError
impl Unpin for SbeDecodeError
impl UnsafeUnpin for SbeDecodeError
impl UnwindSafe for SbeDecodeError
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.