Enum cdrs::consistency::Consistency
[−]
[src]
pub enum Consistency { Any, One, Two, Three, Quorum, All, LocalQuorum, EachQuorum, Serial, LocalSerial, LocalOne, }
Consistency
is an enum which represents Cassandra's consistency levels.
To find more details about each consistency level please refer to Cassandra official docs.
Variants
Any
One
Two
Three
Quorum
All
LocalQuorum
EachQuorum
Serial
LocalSerial
LocalOne
Trait Implementations
impl Debug for Consistency
[src]
impl PartialEq for Consistency
[src]
fn eq(&self, __arg_0: &Consistency) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Clone for Consistency
[src]
fn clone(&self) -> Consistency
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl IntoBytes for Consistency
[src]
fn into_cbytes(&self) -> Vec<u8>
It should convert a struct into an array of bytes.
impl From<i32> for Consistency
[src]
fn from(bytes: i32) -> Consistency
Performs the conversion.
impl FromBytes for Consistency
[src]
fn from_bytes(bytes: Vec<u8>) -> Consistency
It gets and array of bytes and should return an implementor struct.
impl FromCursor for Consistency
[src]
fn from_cursor(cursor: &mut Cursor<Vec<u8>>) -> Consistency
It should return an implementor from an io::Cursor
over an array of bytes.