Struct cassandra_protocol::frame::frame_error::ReadFailureError
source · [−]pub struct ReadFailureError {
pub cl: Consistency,
pub received: CInt,
pub block_for: CInt,
pub num_failures: CInt,
/* private fields */
}
Expand description
A non-timeout exception during a read request.
Fields
cl: Consistency
Consistency level of query.
received: CInt
i32
representing the number of nodes having acknowledged the request.
block_for: CInt
i32
representing the number of replicas whose acknowledgement is required to achieve cl
.
num_failures: CInt
Represents the number of nodes that experience a failure while executing the request.
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 more
sourceimpl Debug for ReadFailureError
impl Debug for ReadFailureError
sourceimpl FromCursor for ReadFailureError
impl FromCursor for ReadFailureError
sourcefn from_cursor(cursor: &mut Cursor<&[u8]>) -> Result<ReadFailureError>
fn from_cursor(cursor: &mut Cursor<&[u8]>) -> Result<ReadFailureError>
It should return an implementor from an io::Cursor
over an array of bytes.
sourceimpl Hash for ReadFailureError
impl Hash for ReadFailureError
sourceimpl Ord for ReadFailureError
impl Ord for ReadFailureError
sourceimpl PartialEq<ReadFailureError> for ReadFailureError
impl PartialEq<ReadFailureError> for ReadFailureError
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ReadFailureError) -> bool
fn ne(&self, other: &ReadFailureError) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ReadFailureError> for ReadFailureError
impl PartialOrd<ReadFailureError> for ReadFailureError
sourcefn partial_cmp(&self, other: &ReadFailureError) -> Option<Ordering>
fn partial_cmp(&self, other: &ReadFailureError) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for ReadFailureError
impl Serialize for ReadFailureError
impl Copy 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more