Enum scylla::transport::errors::RequestError
source · #[non_exhaustive]pub enum RequestError {
CqlRequestSerialization(CqlRequestSerializationError),
BodyExtensionsParseError(FrameBodyExtensionsParseError),
CqlResponseParseError(CqlResponseParseError),
BrokenConnection(BrokenConnectionError),
UnableToAllocStreamId,
}
Expand description
An error that occurred when performing a request.
Possible error kinds:
- Connection is broken
- Response’s frame header deserialization error
- CQL response (frame body) deserialization error
- Driver was unable to allocate a stream id for a request
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CqlRequestSerialization(CqlRequestSerializationError)
Failed to serialize CQL request.
BodyExtensionsParseError(FrameBodyExtensionsParseError)
Failed to deserialize frame body extensions.
CqlResponseParseError(CqlResponseParseError)
Failed to deserialize a CQL response (frame body).
BrokenConnection(BrokenConnectionError)
A connection was broken during request execution.
UnableToAllocStreamId
Driver was unable to allocate a stream id to execute a request on.
Trait Implementations§
source§impl Debug for RequestError
impl Debug for RequestError
source§impl Display for RequestError
impl Display for RequestError
source§impl Error for RequestError
impl Error for RequestError
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<BrokenConnectionError> for RequestError
impl From<BrokenConnectionError> for RequestError
source§fn from(source: BrokenConnectionError) -> Self
fn from(source: BrokenConnectionError) -> Self
Converts to this type from the input type.
source§impl From<CqlRequestSerializationError> for RequestError
impl From<CqlRequestSerializationError> for RequestError
source§fn from(source: CqlRequestSerializationError) -> Self
fn from(source: CqlRequestSerializationError) -> Self
Converts to this type from the input type.
source§impl From<CqlResponseParseError> for RequestError
impl From<CqlResponseParseError> for RequestError
source§fn from(source: CqlResponseParseError) -> Self
fn from(source: CqlResponseParseError) -> Self
Converts to this type from the input type.
source§impl From<FrameBodyExtensionsParseError> for RequestError
impl From<FrameBodyExtensionsParseError> for RequestError
source§fn from(source: FrameBodyExtensionsParseError) -> Self
fn from(source: FrameBodyExtensionsParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RequestError
impl !RefUnwindSafe for RequestError
impl Send for RequestError
impl Sync for RequestError
impl Unpin for RequestError
impl !UnwindSafe for RequestError
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