#[non_exhaustive]pub enum LowLevelDeserializationError {
IoError(Arc<Error>),
TryFromIntError(TryFromIntError),
TryFromSliceError(TryFromSliceError),
TooFewBytesReceived {
expected: usize,
received: usize,
},
InvalidValueLength(i32),
UnknownConsistency(TryFromPrimitiveError<u16>),
InvalidInetLength(u8),
UTF8DeserializationError(Utf8Error),
}
Expand description
A low level deserialization error.
This type of error is returned when deserialization of some primitive value fails.
Possible error kinds:
- generic io error - reading from buffer failed
- out of range integer conversion
- conversion errors - e.g. slice-to-array or primitive-to-enum
- not enough bytes in the buffer to deserialize a value
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IoError(Arc<Error>)
TryFromIntError(TryFromIntError)
TryFromSliceError(TryFromSliceError)
TooFewBytesReceived
InvalidValueLength(i32)
UnknownConsistency(TryFromPrimitiveError<u16>)
InvalidInetLength(u8)
UTF8DeserializationError(Utf8Error)
Trait Implementations§
source§impl Clone for LowLevelDeserializationError
impl Clone for LowLevelDeserializationError
source§fn clone(&self) -> LowLevelDeserializationError
fn clone(&self) -> LowLevelDeserializationError
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 LowLevelDeserializationError
impl Debug for LowLevelDeserializationError
source§impl Error for LowLevelDeserializationError
impl Error for LowLevelDeserializationError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<Error> for LowLevelDeserializationError
impl From<Error> for LowLevelDeserializationError
source§fn from(value: Error) -> LowLevelDeserializationError
fn from(value: Error) -> LowLevelDeserializationError
Converts to this type from the input type.
source§impl From<LowLevelDeserializationError> for ColumnSpecParseErrorKind
impl From<LowLevelDeserializationError> for ColumnSpecParseErrorKind
source§fn from(source: LowLevelDeserializationError) -> ColumnSpecParseErrorKind
fn from(source: LowLevelDeserializationError) -> ColumnSpecParseErrorKind
Converts to this type from the input type.
source§impl From<LowLevelDeserializationError> for SetKeyspaceParseError
impl From<LowLevelDeserializationError> for SetKeyspaceParseError
source§fn from(source: LowLevelDeserializationError) -> SetKeyspaceParseError
fn from(source: LowLevelDeserializationError) -> SetKeyspaceParseError
Converts to this type from the input type.
source§impl From<TryFromIntError> for LowLevelDeserializationError
impl From<TryFromIntError> for LowLevelDeserializationError
source§fn from(source: TryFromIntError) -> LowLevelDeserializationError
fn from(source: TryFromIntError) -> LowLevelDeserializationError
Converts to this type from the input type.
source§impl From<TryFromPrimitiveError<u16>> for LowLevelDeserializationError
impl From<TryFromPrimitiveError<u16>> for LowLevelDeserializationError
source§fn from(source: TryFromPrimitiveError<u16>) -> LowLevelDeserializationError
fn from(source: TryFromPrimitiveError<u16>) -> LowLevelDeserializationError
Converts to this type from the input type.
source§impl From<TryFromSliceError> for LowLevelDeserializationError
impl From<TryFromSliceError> for LowLevelDeserializationError
source§fn from(source: TryFromSliceError) -> LowLevelDeserializationError
fn from(source: TryFromSliceError) -> LowLevelDeserializationError
Converts to this type from the input type.
source§impl From<Utf8Error> for LowLevelDeserializationError
impl From<Utf8Error> for LowLevelDeserializationError
source§fn from(source: Utf8Error) -> LowLevelDeserializationError
fn from(source: Utf8Error) -> LowLevelDeserializationError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LowLevelDeserializationError
impl !RefUnwindSafe for LowLevelDeserializationError
impl Send for LowLevelDeserializationError
impl Sync for LowLevelDeserializationError
impl Unpin for LowLevelDeserializationError
impl !UnwindSafe for LowLevelDeserializationError
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<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