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<ReadFailureError> for ReadFailureError
impl PartialEq<ReadFailureError> 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 ==
.