Enum scylla::transport::errors::QueryError
source · #[non_exhaustive]pub enum QueryError {
Show 16 variants
DbError(DbError, String),
BadQuery(BadQuery),
CqlRequestSerialization(CqlRequestSerializationError),
BodyExtensionsParseError(FrameBodyExtensionsParseError),
EmptyPlan,
CqlResultParseError(CqlResultParseError),
CqlErrorParseError(CqlErrorParseError),
MetadataError(MetadataError),
ConnectionPoolError(ConnectionPoolError),
ProtocolError(ProtocolError),
TimeoutError,
BrokenConnection(BrokenConnectionError),
UnableToAllocStreamId,
RequestTimeout(String),
NextRowError(NextRowError),
IntoLegacyQueryResultError(IntoLegacyQueryResultError),
}
Expand description
Error that occurred during query execution
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DbError(DbError, String)
Database sent a response containing some error with a message
BadQuery(BadQuery)
Caller passed an invalid query
CqlRequestSerialization(CqlRequestSerializationError)
Failed to serialize CQL request.
BodyExtensionsParseError(FrameBodyExtensionsParseError)
Failed to deserialize frame body extensions.
EmptyPlan
Load balancing policy returned an empty plan.
CqlResultParseError(CqlResultParseError)
Received a RESULT server response, but failed to deserialize it.
CqlErrorParseError(CqlErrorParseError)
Received an ERROR server response, but failed to deserialize it.
MetadataError(MetadataError)
A metadata error occurred during schema agreement.
ConnectionPoolError(ConnectionPoolError)
Selected node’s connection pool is in invalid state.
ProtocolError(ProtocolError)
Protocol error.
TimeoutError
Timeout error has occurred, function didn’t complete in time.
BrokenConnection(BrokenConnectionError)
A connection has been broken during query execution.
UnableToAllocStreamId
Driver was unable to allocate a stream id to execute a query on.
RequestTimeout(String)
Client timeout occurred before any response arrived
NextRowError(NextRowError)
An error occurred during async iteration over rows of result.
IntoLegacyQueryResultError(IntoLegacyQueryResultError)
Failed to convert QueryResult
into LegacyQueryResult
.
Trait Implementations§
source§impl Clone for QueryError
impl Clone for QueryError
source§fn clone(&self) -> QueryError
fn clone(&self) -> QueryError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QueryError
impl Debug for QueryError
source§impl Display for QueryError
impl Display for QueryError
source§impl Error for QueryError
impl Error for QueryError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<BadKeyspaceName> for QueryError
impl From<BadKeyspaceName> for QueryError
source§fn from(keyspace_err: BadKeyspaceName) -> QueryError
fn from(keyspace_err: BadKeyspaceName) -> QueryError
source§impl From<BadQuery> for QueryError
impl From<BadQuery> for QueryError
source§impl From<BrokenConnectionError> for QueryError
impl From<BrokenConnectionError> for QueryError
source§fn from(source: BrokenConnectionError) -> Self
fn from(source: BrokenConnectionError) -> Self
source§impl From<ConnectionPoolError> for QueryError
impl From<ConnectionPoolError> for QueryError
source§fn from(source: ConnectionPoolError) -> Self
fn from(source: ConnectionPoolError) -> Self
source§impl From<CqlErrorParseError> for QueryError
impl From<CqlErrorParseError> for QueryError
source§fn from(source: CqlErrorParseError) -> Self
fn from(source: CqlErrorParseError) -> Self
source§impl From<CqlRequestSerializationError> for QueryError
impl From<CqlRequestSerializationError> for QueryError
source§fn from(source: CqlRequestSerializationError) -> Self
fn from(source: CqlRequestSerializationError) -> Self
source§impl From<CqlResultParseError> for QueryError
impl From<CqlResultParseError> for QueryError
source§fn from(source: CqlResultParseError) -> Self
fn from(source: CqlResultParseError) -> Self
source§impl From<Elapsed> for QueryError
impl From<Elapsed> for QueryError
source§fn from(timer_error: Elapsed) -> QueryError
fn from(timer_error: Elapsed) -> QueryError
source§impl From<Error> for QueryError
impl From<Error> for QueryError
source§fn from(error: Error) -> QueryError
fn from(error: Error) -> QueryError
source§impl From<FrameBodyExtensionsParseError> for QueryError
impl From<FrameBodyExtensionsParseError> for QueryError
source§fn from(source: FrameBodyExtensionsParseError) -> Self
fn from(source: FrameBodyExtensionsParseError) -> Self
source§impl From<IntoLegacyQueryResultError> for QueryError
impl From<IntoLegacyQueryResultError> for QueryError
source§fn from(source: IntoLegacyQueryResultError) -> Self
fn from(source: IntoLegacyQueryResultError) -> Self
source§impl From<MetadataError> for QueryError
impl From<MetadataError> for QueryError
source§fn from(source: MetadataError) -> Self
fn from(source: MetadataError) -> Self
source§impl From<NextRowError> for QueryError
impl From<NextRowError> for QueryError
source§fn from(source: NextRowError) -> Self
fn from(source: NextRowError) -> Self
source§impl From<ProtocolError> for QueryError
impl From<ProtocolError> for QueryError
source§fn from(source: ProtocolError) -> Self
fn from(source: ProtocolError) -> Self
source§impl From<QueryError> for LegacyNextRowError
impl From<QueryError> for LegacyNextRowError
source§fn from(source: QueryError) -> Self
fn from(source: QueryError) -> Self
source§impl From<QueryError> for NewSessionError
impl From<QueryError> for NewSessionError
source§fn from(query_error: QueryError) -> NewSessionError
fn from(query_error: QueryError) -> NewSessionError
source§impl From<SerializationError> for QueryError
impl From<SerializationError> for QueryError
source§fn from(serialized_err: SerializationError) -> QueryError
fn from(serialized_err: SerializationError) -> QueryError
source§impl From<SerializeValuesError> for QueryError
impl From<SerializeValuesError> for QueryError
source§fn from(serialized_err: SerializeValuesError) -> QueryError
fn from(serialized_err: SerializeValuesError) -> QueryError
Auto Trait Implementations§
impl !Freeze for QueryError
impl !RefUnwindSafe for QueryError
impl Send for QueryError
impl Sync for QueryError
impl Unpin for QueryError
impl !UnwindSafe for QueryError
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
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)
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>
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>
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