Struct scylla::deserialize::TypeCheckError
source · pub struct TypeCheckError(/* private fields */);
Expand description
An error indicating that a failure happened during type check.
The error is type-erased so that the crate users can define their own type check impls and their errors. As for the impls defined or generated by the driver itself, the following errors can be returned:
row::BuiltinTypeCheckError
is returned when type check of one of types with an impl built into the driver fails. It is also returned from impls generated by theDeserializeRow
macro.value::BuiltinTypeCheckError
is analogous to the above but is returned fromDeserializeValue::type_check
instead both in the case of builtin impls and impls generated by theDeserializeValue
macro. It won’t be returned by theSession
directly, but it might be nested in therow::BuiltinTypeCheckError
.
Implementations§
Trait Implementations§
source§impl Clone for TypeCheckError
impl Clone for TypeCheckError
source§fn clone(&self) -> TypeCheckError
fn clone(&self) -> TypeCheckError
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 TypeCheckError
impl Debug for TypeCheckError
source§impl Display for TypeCheckError
impl Display for TypeCheckError
source§impl Error for TypeCheckError
impl Error for TypeCheckError
1.30.0 · 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<TypeCheckError> for FirstRowError
impl From<TypeCheckError> for FirstRowError
source§fn from(source: TypeCheckError) -> Self
fn from(source: TypeCheckError) -> Self
Converts to this type from the input type.
source§impl From<TypeCheckError> for IntoLegacyQueryResultError
impl From<TypeCheckError> for IntoLegacyQueryResultError
source§fn from(source: TypeCheckError) -> Self
fn from(source: TypeCheckError) -> Self
Converts to this type from the input type.
source§impl From<TypeCheckError> for MaybeFirstRowError
impl From<TypeCheckError> for MaybeFirstRowError
source§fn from(source: TypeCheckError) -> Self
fn from(source: TypeCheckError) -> Self
Converts to this type from the input type.
source§impl From<TypeCheckError> for RowsError
impl From<TypeCheckError> for RowsError
source§fn from(source: TypeCheckError) -> Self
fn from(source: TypeCheckError) -> Self
Converts to this type from the input type.
source§impl From<TypeCheckError> for SingleRowError
impl From<TypeCheckError> for SingleRowError
source§fn from(source: TypeCheckError) -> Self
fn from(source: TypeCheckError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TypeCheckError
impl !RefUnwindSafe for TypeCheckError
impl Send for TypeCheckError
impl Sync for TypeCheckError
impl Unpin for TypeCheckError
impl !UnwindSafe for TypeCheckError
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