pub enum FastError {
UnexpectedEof,
UnknownTemplate(u32),
InvalidPresenceMap,
IntegerOverflow,
InvalidString,
InvalidDecimal {
exponent: i32,
mantissa: i64,
},
MissingMandatoryField {
name: String,
},
InvalidOperator(String),
DictionaryEntryNotFound {
key: String,
},
SequenceLengthMismatch {
expected: u32,
actual: u32,
},
}Expand description
Errors that can occur during FAST encoding/decoding.
Variants§
UnexpectedEof
Unexpected end of input.
UnknownTemplate(u32)
Unknown template ID.
InvalidPresenceMap
Invalid presence map.
IntegerOverflow
Integer overflow during decoding.
InvalidString
Invalid string encoding.
InvalidDecimal
Invalid decimal encoding.
MissingMandatoryField
Missing mandatory field.
InvalidOperator(String)
Invalid operator application.
DictionaryEntryNotFound
Dictionary entry not found.
SequenceLengthMismatch
Sequence length mismatch.
Trait Implementations§
Source§impl Error for FastError
impl Error for FastError
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 Eq for FastError
impl StructuralPartialEq for FastError
Auto Trait Implementations§
impl Freeze for FastError
impl RefUnwindSafe for FastError
impl Send for FastError
impl Sync for FastError
impl Unpin for FastError
impl UnwindSafe for FastError
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