pub enum QueryError {
DbError(DbError, String),
BadQuery(BadQuery),
IoError(Arc<Error>),
ProtocolError(&'static str),
InvalidMessage(String),
TimeoutError,
TooManyOrphanedStreamIds(u16),
UnableToAllocStreamId,
RequestTimeout(String),
TranslationError(TranslationError),
}
Expand description
Error that occurred during query execution
Variants§
DbError(DbError, String)
Database sent a response containing some error with a message
BadQuery(BadQuery)
Caller passed an invalid query
IoError(Arc<Error>)
Input/Output error has occurred, connection broken etc.
ProtocolError(&'static str)
Unexpected message received
InvalidMessage(String)
Invalid message received
TimeoutError
Timeout error has occurred, function didn’t complete in time.
TooManyOrphanedStreamIds(u16)
UnableToAllocStreamId
RequestTimeout(String)
Client timeout occurred before any response arrived
TranslationError(TranslationError)
Address translation failed
Implementations§
Source§impl QueryError
impl QueryError
Checks if this error indicates that a chosen source port/address cannot be bound. This is caused by one of the following:
- The source address is already used by another socket,
- The source address is reserved and the process does not have sufficient privileges to use it.
Trait Implementations§
Source§impl Clone for QueryError
impl Clone for QueryError
Source§fn clone(&self) -> QueryError
fn clone(&self) -> QueryError
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 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)>
Returns 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<BadKeyspaceName> for QueryError
impl From<BadKeyspaceName> for QueryError
Source§fn from(keyspace_err: BadKeyspaceName) -> QueryError
fn from(keyspace_err: BadKeyspaceName) -> QueryError
Converts to this type from the input type.
Source§impl From<BadQuery> for QueryError
impl From<BadQuery> for QueryError
Source§fn from(source: BadQuery) -> QueryError
fn from(source: BadQuery) -> QueryError
Converts to this type from the input type.
Source§impl From<Elapsed> for QueryError
impl From<Elapsed> for QueryError
Source§fn from(timer_error: Elapsed) -> QueryError
fn from(timer_error: Elapsed) -> QueryError
Converts to this type from the input type.
Source§impl From<Error> for QueryError
impl From<Error> for QueryError
Source§fn from(io_error: Error) -> QueryError
fn from(io_error: Error) -> QueryError
Converts to this type from the input type.
Source§impl From<Error> for QueryError
impl From<Error> for QueryError
Source§fn from(error: Error) -> QueryError
fn from(error: Error) -> QueryError
Converts to this type from the input type.
Source§impl From<FrameError> for QueryError
impl From<FrameError> for QueryError
Source§fn from(frame_error: FrameError) -> QueryError
fn from(frame_error: FrameError) -> QueryError
Converts to this type from the input type.
Source§impl From<ParseError> for QueryError
impl From<ParseError> for QueryError
Source§fn from(parse_error: ParseError) -> QueryError
fn from(parse_error: ParseError) -> QueryError
Converts to this type from the input type.
Source§impl From<QueryError> for NewSessionError
impl From<QueryError> for NewSessionError
Source§fn from(query_error: QueryError) -> NewSessionError
fn from(query_error: QueryError) -> NewSessionError
Converts to this type from the input type.
Source§impl From<QueryError> for NextRowError
impl From<QueryError> for NextRowError
Source§fn from(source: QueryError) -> Self
fn from(source: QueryError) -> Self
Converts to this type from the input type.
Source§impl From<SerializationError> for QueryError
impl From<SerializationError> for QueryError
Source§fn from(serialized_err: SerializationError) -> QueryError
fn from(serialized_err: SerializationError) -> QueryError
Converts to this type from the input type.
Source§impl From<SerializeValuesError> for QueryError
impl From<SerializeValuesError> for QueryError
Source§fn from(serialized_err: SerializeValuesError) -> QueryError
fn from(serialized_err: SerializeValuesError) -> QueryError
Converts to this type from the input type.
Source§impl From<TranslationError> for QueryError
impl From<TranslationError> for QueryError
Source§fn from(source: TranslationError) -> QueryError
fn from(source: TranslationError) -> QueryError
Converts to this type from the input type.
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
Mutably borrows from an owned value. Read more
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>
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