Struct cassandra_protocol::frame::message_error::WriteFailureError
source · pub struct WriteFailureError {
pub cl: Consistency,
pub received: CInt,
pub block_for: CInt,
pub failure_info: FailureInfo,
pub write_type: WriteType,
}
Expand description
A non-timeout exception during a write request.
Fields§
§cl: Consistency
Consistency of the query having triggered the exception.
received: CInt
The number of nodes having answered the request.
block_for: CInt
The number of replicas whose acknowledgement is required to achieve cl
.
failure_info: FailureInfo
Failure information.
write_type: WriteType
describes the type of the write that failed.
Trait Implementations§
source§impl Clone for WriteFailureError
impl Clone for WriteFailureError
source§fn clone(&self) -> WriteFailureError
fn clone(&self) -> WriteFailureError
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 WriteFailureError
impl Debug for WriteFailureError
source§impl FromCursor for WriteFailureError
impl FromCursor for WriteFailureError
source§fn from_cursor(
cursor: &mut Cursor<&[u8]>,
version: Version
) -> Result<WriteFailureError>
fn from_cursor( cursor: &mut Cursor<&[u8]>, version: Version ) -> Result<WriteFailureError>
Tries to parse Self from a cursor of bytes.
source§impl PartialEq for WriteFailureError
impl PartialEq for WriteFailureError
source§fn eq(&self, other: &WriteFailureError) -> bool
fn eq(&self, other: &WriteFailureError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for WriteFailureError
impl Serialize for WriteFailureError
impl Eq for WriteFailureError
impl StructuralPartialEq for WriteFailureError
Auto Trait Implementations§
impl Freeze for WriteFailureError
impl RefUnwindSafe for WriteFailureError
impl Send for WriteFailureError
impl Sync for WriteFailureError
impl Unpin for WriteFailureError
impl UnwindSafe for WriteFailureError
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> 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