#[non_exhaustive]pub enum RequestAttemptError {
SerializationError(SerializationError),
CqlRequestSerialization(CqlRequestSerializationError),
UnableToAllocStreamId,
BrokenConnectionError(BrokenConnectionError),
BodyExtensionsParseError(FrameBodyExtensionsParseError),
CqlResultParseError(CqlResultParseError),
CqlErrorParseError(CqlErrorParseError),
DbError(DbError, String),
UnexpectedResponse(CqlResponseKind),
RepreparedIdChanged {
statement: String,
expected_id: Vec<u8>,
reprepared_id: Vec<u8>,
},
RepreparedIdMissingInBatch,
NonfinishedPagingState,
}
Expand description
An error that occurred during a single attempt of:
QUERY
PREPARE
EXECUTE
BATCH
requests. The retry decision is made based on this error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SerializationError(SerializationError)
Failed to serialize query parameters. This error occurs, when user executes
a CQL QUERY
request with non-empty parameter’s value list and the serialization
of provided values fails during statement preparation.
CqlRequestSerialization(CqlRequestSerializationError)
Failed to serialize CQL request.
UnableToAllocStreamId
Driver was unable to allocate a stream id to execute a query on.
BrokenConnectionError(BrokenConnectionError)
A connection has been broken during query execution.
BodyExtensionsParseError(FrameBodyExtensionsParseError)
Failed to deserialize frame body extensions.
CqlResultParseError(CqlResultParseError)
Received a RESULT server response, but failed to deserialize it.
CqlErrorParseError(CqlErrorParseError)
Received an ERROR server response, but failed to deserialize it.
DbError(DbError, String)
Database sent a response containing some error with a message
UnexpectedResponse(CqlResponseKind)
Received an unexpected response from the server.
RepreparedIdChanged
Prepared statement id changed after repreparation.
RepreparedIdMissingInBatch
Driver tried to reprepare a statement in the batch, but the reprepared statement’s id is not included in the batch.
NonfinishedPagingState
A result with nonfinished paging state received for unpaged query.
Trait Implementations§
Source§impl Clone for RequestAttemptError
impl Clone for RequestAttemptError
Source§fn clone(&self) -> RequestAttemptError
fn clone(&self) -> RequestAttemptError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RequestAttemptError
impl Debug for RequestAttemptError
Source§impl Display for RequestAttemptError
impl Display for RequestAttemptError
Source§impl Error for RequestAttemptError
impl Error for RequestAttemptError
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<BrokenConnectionError> for RequestAttemptError
impl From<BrokenConnectionError> for RequestAttemptError
Source§fn from(source: BrokenConnectionError) -> Self
fn from(source: BrokenConnectionError) -> Self
Source§impl From<CqlErrorParseError> for RequestAttemptError
impl From<CqlErrorParseError> for RequestAttemptError
Source§fn from(source: CqlErrorParseError) -> Self
fn from(source: CqlErrorParseError) -> Self
Source§impl From<CqlRequestSerializationError> for RequestAttemptError
impl From<CqlRequestSerializationError> for RequestAttemptError
Source§fn from(source: CqlRequestSerializationError) -> Self
fn from(source: CqlRequestSerializationError) -> Self
Source§impl From<CqlResultParseError> for RequestAttemptError
impl From<CqlResultParseError> for RequestAttemptError
Source§fn from(source: CqlResultParseError) -> Self
fn from(source: CqlResultParseError) -> Self
Source§impl From<Error> for RequestAttemptError
impl From<Error> for RequestAttemptError
Source§impl From<FrameBodyExtensionsParseError> for RequestAttemptError
impl From<FrameBodyExtensionsParseError> for RequestAttemptError
Source§fn from(source: FrameBodyExtensionsParseError) -> Self
fn from(source: FrameBodyExtensionsParseError) -> Self
Source§impl From<RequestAttemptError> for ExecutionError
impl From<RequestAttemptError> for ExecutionError
Source§fn from(source: RequestAttemptError) -> Self
fn from(source: RequestAttemptError) -> Self
Source§impl From<RequestAttemptError> for MetadataFetchErrorKind
impl From<RequestAttemptError> for MetadataFetchErrorKind
Source§fn from(source: RequestAttemptError) -> Self
fn from(source: RequestAttemptError) -> Self
Source§impl From<RequestAttemptError> for RequestError
impl From<RequestAttemptError> for RequestError
Source§fn from(source: RequestAttemptError) -> Self
fn from(source: RequestAttemptError) -> Self
Source§impl From<RequestAttemptError> for SchemaAgreementError
impl From<RequestAttemptError> for SchemaAgreementError
Source§fn from(source: RequestAttemptError) -> Self
fn from(source: RequestAttemptError) -> Self
Source§impl From<RequestAttemptError> for UseKeyspaceError
impl From<RequestAttemptError> for UseKeyspaceError
Source§fn from(source: RequestAttemptError) -> Self
fn from(source: RequestAttemptError) -> Self
Source§impl From<SerializationError> for RequestAttemptError
impl From<SerializationError> for RequestAttemptError
Source§fn from(source: SerializationError) -> Self
fn from(source: SerializationError) -> Self
Auto Trait Implementations§
impl !Freeze for RequestAttemptError
impl !RefUnwindSafe for RequestAttemptError
impl Send for RequestAttemptError
impl Sync for RequestAttemptError
impl Unpin for RequestAttemptError
impl !UnwindSafe for RequestAttemptError
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§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