Enum scyllax::error::ScyllaxError
source · pub enum ScyllaxError {
QueryError(QueryError),
NewSessionError(NewSessionError),
SingleRowTyped(SingleRowTypedError),
NoRowsFound,
BuildUpsertQueryError(BuildUpsertQueryError),
SerializedValues(SerializeValuesError),
ReceiverError(RecvError),
}
Expand description
An error from ScyllaX
Variants§
QueryError(QueryError)
A query error from Scylla
NewSessionError(NewSessionError)
A session error from Scylla
SingleRowTyped(SingleRowTypedError)
An error thrown when trying to parse a single row
NoRowsFound
No rows were found when trying to parse a single row
BuildUpsertQueryError(BuildUpsertQueryError)
There was an error when building an upsert query.
SerializedValues(SerializeValuesError)
An error when serializing values
ReceiverError(RecvError)
An error when using receivers
Trait Implementations§
source§impl Clone for ScyllaxError
impl Clone for ScyllaxError
source§fn clone(&self) -> ScyllaxError
fn clone(&self) -> ScyllaxError
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 ScyllaxError
impl Debug for ScyllaxError
source§impl Display for ScyllaxError
impl Display for ScyllaxError
source§impl Error for ScyllaxError
impl Error for ScyllaxError
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<BuildUpsertQueryError> for ScyllaxError
impl From<BuildUpsertQueryError> for ScyllaxError
source§fn from(source: BuildUpsertQueryError) -> Self
fn from(source: BuildUpsertQueryError) -> Self
Converts to this type from the input type.
source§impl From<NewSessionError> for ScyllaxError
impl From<NewSessionError> for ScyllaxError
source§fn from(source: NewSessionError) -> Self
fn from(source: NewSessionError) -> Self
Converts to this type from the input type.
source§impl From<QueryError> for ScyllaxError
impl From<QueryError> for ScyllaxError
source§fn from(source: QueryError) -> Self
fn from(source: QueryError) -> Self
Converts to this type from the input type.
source§impl From<RecvError> for ScyllaxError
impl From<RecvError> for ScyllaxError
source§impl From<SerializeValuesError> for ScyllaxError
impl From<SerializeValuesError> for ScyllaxError
source§fn from(source: SerializeValuesError) -> Self
fn from(source: SerializeValuesError) -> Self
Converts to this type from the input type.
source§impl From<SingleRowTypedError> for ScyllaxError
impl From<SingleRowTypedError> for ScyllaxError
source§fn from(source: SingleRowTypedError) -> Self
fn from(source: SingleRowTypedError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ScyllaxError
impl !RefUnwindSafe for ScyllaxError
impl Send for ScyllaxError
impl Sync for ScyllaxError
impl Unpin for ScyllaxError
impl !UnwindSafe for ScyllaxError
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> 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