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 for WriteTimeoutError
impl PartialEq for WriteTimeoutError
Source§impl PartialOrd for WriteTimeoutError
impl PartialOrd for WriteTimeoutError
Source§impl Serialize for WriteTimeoutError
impl Serialize for WriteTimeoutError
impl Eq for WriteTimeoutError
impl StructuralPartialEq for WriteTimeoutError
Auto Trait Implementations§
impl Freeze for WriteTimeoutError
impl RefUnwindSafe for WriteTimeoutError
impl Send for WriteTimeoutError
impl Sync for WriteTimeoutError
impl Unpin for WriteTimeoutError
impl UnwindSafe for WriteTimeoutError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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