Struct cassandra_protocol::frame::message_error::ReadFailureError
source · pub struct ReadFailureError {
pub cl: Consistency,
pub received: CInt,
pub block_for: CInt,
pub failure_info: FailureInfo,
/* private fields */
}
Expand description
A non-timeout exception during a read request.
Fields§
§cl: Consistency
Consistency level of query.
received: CInt
The number of nodes having acknowledged the request.
block_for: CInt
The number of replicas whose acknowledgement is required to achieve cl
.
failure_info: FailureInfo
Failure information.
Implementations§
source§impl ReadFailureError
impl ReadFailureError
sourcepub fn replica_has_responded(&self) -> bool
pub fn replica_has_responded(&self) -> bool
Shows if replica has responded to a query.
Trait Implementations§
source§impl Clone for ReadFailureError
impl Clone for ReadFailureError
source§fn clone(&self) -> ReadFailureError
fn clone(&self) -> ReadFailureError
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 ReadFailureError
impl Debug for ReadFailureError
source§impl FromCursor for ReadFailureError
impl FromCursor for ReadFailureError
source§fn from_cursor(
cursor: &mut Cursor<&[u8]>,
version: Version
) -> Result<ReadFailureError>
fn from_cursor( cursor: &mut Cursor<&[u8]>, version: Version ) -> Result<ReadFailureError>
Tries to parse Self from a cursor of bytes.
source§impl PartialEq for ReadFailureError
impl PartialEq for ReadFailureError
source§fn eq(&self, other: &ReadFailureError) -> bool
fn eq(&self, other: &ReadFailureError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ReadFailureError
impl Serialize for ReadFailureError
impl Eq for ReadFailureError
impl StructuralPartialEq for ReadFailureError
Auto Trait Implementations§
impl Freeze for ReadFailureError
impl RefUnwindSafe for ReadFailureError
impl Send for ReadFailureError
impl Sync for ReadFailureError
impl Unpin for ReadFailureError
impl UnwindSafe for ReadFailureError
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> 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