Enum scylla::transport::errors::BrokenConnectionErrorKind
source · #[non_exhaustive]pub enum BrokenConnectionErrorKind {
KeepaliveTimeout(IpAddr),
KeepaliveQueryError(RequestError),
FrameHeaderParseError(FrameHeaderParseError),
CqlEventHandlingError(CqlEventHandlingError),
UnexpectedStreamId(i16),
WriteError(Error),
TooManyOrphanedStreamIds(u16),
ChannelError,
}
Expand description
A reason why connection was broken.
See BrokenConnectionError::downcast_ref()
.
You can retrieve the actual type by downcasting Arc<dyn Error>
.
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.
KeepaliveTimeout(IpAddr)
Driver sent a keepalive request to the database, but the request timed out.
KeepaliveQueryError(RequestError)
Driver sent a keepalive request to the database, but request execution failed.
FrameHeaderParseError(FrameHeaderParseError)
Failed to deserialize response frame header.
CqlEventHandlingError(CqlEventHandlingError)
Failed to handle a CQL event (server response received on stream -1).
UnexpectedStreamId(i16)
Received a server frame with unexpected stream id.
WriteError(Error)
IO error - server failed to write data to the socket.
TooManyOrphanedStreamIds(u16)
Maximum number of orphaned streams exceeded.
ChannelError
Failed to send data via tokio channel. This implies that connection was probably already broken for some other reason.
Trait Implementations§
source§impl Debug for BrokenConnectionErrorKind
impl Debug for BrokenConnectionErrorKind
source§impl Display for BrokenConnectionErrorKind
impl Display for BrokenConnectionErrorKind
source§impl Error for BrokenConnectionErrorKind
impl Error for BrokenConnectionErrorKind
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<BrokenConnectionErrorKind> for BrokenConnectionError
impl From<BrokenConnectionErrorKind> for BrokenConnectionError
source§fn from(value: BrokenConnectionErrorKind) -> Self
fn from(value: BrokenConnectionErrorKind) -> Self
Converts to this type from the input type.
source§impl From<CqlEventHandlingError> for BrokenConnectionErrorKind
impl From<CqlEventHandlingError> for BrokenConnectionErrorKind
source§fn from(source: CqlEventHandlingError) -> Self
fn from(source: CqlEventHandlingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BrokenConnectionErrorKind
impl !RefUnwindSafe for BrokenConnectionErrorKind
impl Send for BrokenConnectionErrorKind
impl Sync for BrokenConnectionErrorKind
impl Unpin for BrokenConnectionErrorKind
impl !UnwindSafe for BrokenConnectionErrorKind
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