Enum mz_avro::error::DecodeError
source · pub enum DecodeError {
Show 39 variants
CodecUtf8Error,
MapKeyUtf8Error,
StringUtf8Error,
UuidUtf8Error,
UnrecognizedCodec(String),
BadSnappyChecksum {
expected: u32,
actual: u32,
},
ExpectedNonnegInteger(i64),
BadTimestamp {
unit: TsUnit,
value: i64,
},
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: Category,
bytes: Vec<u8>,
},
BadUuid(Error),
MismatchedBlockHeader {
expected: [u8; 16],
actual: [u8; 16],
},
DateOutOfRange(i32),
TimestampOutOfRange(NaiveDateTime),
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
Fields
BadUuid(Error)
MismatchedBlockHeader
DateOutOfRange(i32)
TimestampOutOfRange(NaiveDateTime)
Custom(String)
Implementations§
Trait Implementations§
source§impl Clone for DecodeError
impl Clone for DecodeError
source§fn clone(&self) -> DecodeError
fn clone(&self) -> DecodeError
Returns a copy 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.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.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request