Struct scylla::transport::errors::BrokenConnectionError
source · pub struct BrokenConnectionError(/* private fields */);
Expand description
An error indicating that a connection was broken. Possible error reasons:
- keepalive query errors - driver failed to sent a keepalive query, or the query timed out
- received a frame with unexpected stream id
- failed to handle a server event (message received on stream -1)
- some low-level IO errors - e.g. driver failed to write data via socket
Implementations§
source§impl BrokenConnectionError
impl BrokenConnectionError
sourcepub fn downcast_ref<T: Error + 'static>(&self) -> Option<&T>
pub fn downcast_ref<T: Error + 'static>(&self) -> Option<&T>
Retrieve an error reason by downcasting to specific type.
Trait Implementations§
source§impl Clone for BrokenConnectionError
impl Clone for BrokenConnectionError
source§fn clone(&self) -> BrokenConnectionError
fn clone(&self) -> BrokenConnectionError
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 BrokenConnectionError
impl Debug for BrokenConnectionError
source§impl Display for BrokenConnectionError
impl Display for BrokenConnectionError
source§impl Error for BrokenConnectionError
impl Error for BrokenConnectionError
1.30.0 · 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 ConnectionError
impl From<BrokenConnectionError> for ConnectionError
source§fn from(source: BrokenConnectionError) -> Self
fn from(source: BrokenConnectionError) -> Self
Converts to this type from the input type.
source§impl From<BrokenConnectionError> for ConnectionSetupRequestErrorKind
impl From<BrokenConnectionError> for ConnectionSetupRequestErrorKind
source§fn from(source: BrokenConnectionError) -> Self
fn from(source: BrokenConnectionError) -> Self
Converts to this type from the input type.
source§impl From<BrokenConnectionError> for NewSessionError
impl From<BrokenConnectionError> for NewSessionError
source§fn from(source: BrokenConnectionError) -> Self
fn from(source: BrokenConnectionError) -> Self
Converts to this type from the input type.
source§impl From<BrokenConnectionError> for QueryError
impl From<BrokenConnectionError> for QueryError
source§fn from(source: BrokenConnectionError) -> Self
fn from(source: BrokenConnectionError) -> Self
Converts to this type from the input type.
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<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.
Auto Trait Implementations§
impl Freeze for BrokenConnectionError
impl !RefUnwindSafe for BrokenConnectionError
impl Send for BrokenConnectionError
impl Sync for BrokenConnectionError
impl Unpin for BrokenConnectionError
impl !UnwindSafe for BrokenConnectionError
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
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>
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