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
sourceimpl 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
sourceimpl Clone for ReadFailureError
impl Clone for ReadFailureError
sourcefn clone(&self) -> ReadFailureError
fn clone(&self) -> ReadFailureError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ReadFailureError
impl Debug for ReadFailureError
sourceimpl FromCursor for ReadFailureError
impl FromCursor for ReadFailureError
sourcefn 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.
sourceimpl PartialEq<ReadFailureError> for ReadFailureError
impl PartialEq<ReadFailureError> for ReadFailureError
sourcefn eq(&self, other: &ReadFailureError) -> bool
fn eq(&self, other: &ReadFailureError) -> bool
sourceimpl Serialize for ReadFailureError
impl Serialize for ReadFailureError
impl Eq for ReadFailureError
impl StructuralEq for ReadFailureError
impl StructuralPartialEq for ReadFailureError
Auto Trait Implementations
impl RefUnwindSafe for ReadFailureError
impl Send for ReadFailureError
impl Sync for ReadFailureError
impl Unpin for ReadFailureError
impl UnwindSafe for ReadFailureError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more