pub enum DecodeError {
Show 37 variants
CodecUtf8Error,
MapKeyUtf8Error,
StringUtf8Error,
UuidUtf8Error,
UnrecognizedCodec(String),
BadSnappyChecksum {
expected: u32,
actual: u32,
},
ExpectedNonnegInteger(i64),
BadTimestamp {
unit: TsUnit,
seconds: i64,
fraction: u32,
},
BadBoolean(u8),
BadDate(i32),
BadUnionIndex {
index: usize,
len: usize,
},
MissingUnionIndex(usize),
BadEnumIndex {
index: usize,
len: usize,
},
MissingEnumIndex {
index: usize,
symbol: String,
},
WrongUnionIndex {
expected: usize,
actual: usize,
},
UnexpectedRecord,
UnexpectedUnion,
UnexpectedArray,
UnexpectedMap,
UnexpectedEnum,
UnexpectedScalar,
UnexpectedDecimal,
UnexpectedBytes,
UnexpectedString,
UnexpectedJson,
UnexpectedUuid,
UnexpectedFixed,
UnexpectedScalarKind(ScalarKind),
WrongHeaderMagic([u8; 4]),
MissingAvroDotSchema,
I32OutOfRange(i64),
IntConversionError,
IntDecodeOverflow,
BadJson(Category),
BadUuid(Error),
MismatchedBlockHeader {
expected: [u8; 16],
actual: [u8; 16],
},
Custom(String),
}Variants§
CodecUtf8Error
MapKeyUtf8Error
StringUtf8Error
UuidUtf8Error
UnrecognizedCodec(String)
BadSnappyChecksum
ExpectedNonnegInteger(i64)
BadTimestamp
BadBoolean(u8)
BadDate(i32)
BadUnionIndex
MissingUnionIndex(usize)
BadEnumIndex
MissingEnumIndex
WrongUnionIndex
UnexpectedRecord
UnexpectedUnion
UnexpectedArray
UnexpectedMap
UnexpectedEnum
UnexpectedScalar
UnexpectedDecimal
UnexpectedBytes
UnexpectedString
UnexpectedJson
UnexpectedUuid
UnexpectedFixed
UnexpectedScalarKind(ScalarKind)
WrongHeaderMagic([u8; 4])
MissingAvroDotSchema
I32OutOfRange(i64)
IntConversionError
IntDecodeOverflow
BadJson(Category)
BadUuid(Error)
MismatchedBlockHeader
Custom(String)
Trait Implementations§
Source§impl Clone for DecodeError
impl Clone for DecodeError
Source§fn clone(&self) -> DecodeError
fn clone(&self) -> DecodeError
Returns a duplicate of the value. Read more
1.0.0 · 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 DecodeError
impl Debug for DecodeError
Source§impl Display for DecodeError
impl Display for DecodeError
Source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
Source§fn from(inner: DecodeError) -> Self
fn from(inner: DecodeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DecodeError
impl PartialEq for DecodeError
impl Eq for DecodeError
impl StructuralPartialEq for DecodeError
Auto Trait Implementations§
impl Freeze for DecodeError
impl RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl UnwindSafe for DecodeError
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more