Struct cassandra_protocol::frame::frame_error::WriteFailureError
source · [−]pub struct WriteFailureError {
pub cl: Consistency,
pub received: CInt,
pub block_for: CInt,
pub num_failures: CInt,
pub write_type: WriteType,
}
Expand description
A non-timeout exception during a write request. Read more…
Fields
cl: Consistency
Consistency of the query having triggered the exception.
received: CInt
Represents the number of nodes having answered the request.
block_for: CInt
Represents 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.
write_type: WriteType
describes the type of the write that failed.
Trait Implementations
sourceimpl Clone for WriteFailureError
impl Clone for WriteFailureError
sourcefn clone(&self) -> WriteFailureError
fn clone(&self) -> WriteFailureError
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 WriteFailureError
impl Debug for WriteFailureError
sourceimpl FromCursor for WriteFailureError
impl FromCursor for WriteFailureError
sourcefn from_cursor(cursor: &mut Cursor<&[u8]>) -> Result<WriteFailureError>
fn from_cursor(cursor: &mut Cursor<&[u8]>) -> Result<WriteFailureError>
It should return an implementor from an io::Cursor
over an array of bytes.
sourceimpl Hash for WriteFailureError
impl Hash for WriteFailureError
sourceimpl Ord for WriteFailureError
impl Ord for WriteFailureError
sourceimpl PartialEq<WriteFailureError> for WriteFailureError
impl PartialEq<WriteFailureError> for WriteFailureError
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &WriteFailureError) -> bool
fn ne(&self, other: &WriteFailureError) -> bool
This method tests for !=
.
sourceimpl PartialOrd<WriteFailureError> for WriteFailureError
impl PartialOrd<WriteFailureError> for WriteFailureError
sourcefn partial_cmp(&self, other: &WriteFailureError) -> Option<Ordering>
fn partial_cmp(&self, other: &WriteFailureError) -> 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 WriteFailureError
impl Serialize for WriteFailureError
impl Copy for WriteFailureError
impl Eq for WriteFailureError
impl StructuralEq for WriteFailureError
impl StructuralPartialEq for WriteFailureError
Auto Trait Implementations
impl RefUnwindSafe for WriteFailureError
impl Send for WriteFailureError
impl Sync for WriteFailureError
impl Unpin for WriteFailureError
impl UnwindSafe for WriteFailureError
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