pub struct ReadTimeoutError {
pub cl: Consistency,
pub received: CInt,
pub block_for: CInt,
/* private fields */
}
Expand description
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
.
Implementations§
Source§impl ReadTimeoutError
impl ReadTimeoutError
Sourcepub fn replica_has_responded(&self) -> bool
pub fn replica_has_responded(&self) -> bool
Shows if a replica has responded to a query.
Trait Implementations§
Source§impl Clone for ReadTimeoutError
impl Clone for ReadTimeoutError
Source§fn clone(&self) -> ReadTimeoutError
fn clone(&self) -> ReadTimeoutError
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 ReadTimeoutError
impl Debug for ReadTimeoutError
Source§impl FromCursor for ReadTimeoutError
impl FromCursor for ReadTimeoutError
Source§fn from_cursor(
cursor: &mut Cursor<&[u8]>,
version: Version,
) -> Result<ReadTimeoutError>
fn from_cursor( cursor: &mut Cursor<&[u8]>, version: Version, ) -> Result<ReadTimeoutError>
Tries to parse Self from a cursor of bytes.
Source§impl Hash for ReadTimeoutError
impl Hash for ReadTimeoutError
Source§impl Ord for ReadTimeoutError
impl Ord for ReadTimeoutError
Source§fn cmp(&self, other: &ReadTimeoutError) -> Ordering
fn cmp(&self, other: &ReadTimeoutError) -> 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 ReadTimeoutError
impl PartialEq for ReadTimeoutError
Source§impl PartialOrd for ReadTimeoutError
impl PartialOrd for ReadTimeoutError
Source§impl Serialize for ReadTimeoutError
impl Serialize for ReadTimeoutError
impl Copy for ReadTimeoutError
impl Eq for ReadTimeoutError
impl StructuralPartialEq for ReadTimeoutError
Auto Trait Implementations§
impl Freeze for ReadTimeoutError
impl RefUnwindSafe for ReadTimeoutError
impl Send for ReadTimeoutError
impl Sync for ReadTimeoutError
impl Unpin for ReadTimeoutError
impl UnwindSafe for ReadTimeoutError
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