Struct cassandra_protocol::frame::message_error::WriteTimeoutError
source · pub struct WriteTimeoutError {
pub cl: Consistency,
pub received: CInt,
pub block_for: CInt,
pub write_type: WriteType,
pub contentions: Option<CIntShort>,
}
Expand description
Timeout exception during a write 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
.
write_type: WriteType
Describes the type of the write that timed out.
contentions: Option<CIntShort>
The number of contentions occurred during the CAS operation. The field only presents when
the write_type
is Cas
.
Trait Implementations§
source§impl Clone for WriteTimeoutError
impl Clone for WriteTimeoutError
source§fn clone(&self) -> WriteTimeoutError
fn clone(&self) -> WriteTimeoutError
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 WriteTimeoutError
impl Debug for WriteTimeoutError
source§impl FromCursor for WriteTimeoutError
impl FromCursor for WriteTimeoutError
source§fn from_cursor(
cursor: &mut Cursor<&[u8]>,
version: Version
) -> Result<WriteTimeoutError>
fn from_cursor( cursor: &mut Cursor<&[u8]>, version: Version ) -> Result<WriteTimeoutError>
Tries to parse Self from a cursor of bytes.
source§impl Hash for WriteTimeoutError
impl Hash for WriteTimeoutError
source§impl Ord for WriteTimeoutError
impl Ord for WriteTimeoutError
source§fn cmp(&self, other: &WriteTimeoutError) -> Ordering
fn cmp(&self, other: &WriteTimeoutError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<WriteTimeoutError> for WriteTimeoutError
impl PartialEq<WriteTimeoutError> for WriteTimeoutError
source§fn eq(&self, other: &WriteTimeoutError) -> bool
fn eq(&self, other: &WriteTimeoutError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<WriteTimeoutError> for WriteTimeoutError
impl PartialOrd<WriteTimeoutError> for WriteTimeoutError
source§fn partial_cmp(&self, other: &WriteTimeoutError) -> Option<Ordering>
fn partial_cmp(&self, other: &WriteTimeoutError) -> Option<Ordering>
1.0.0 · source§fn 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