Struct cdrs::frame::frame_error::UnavailableError
source · pub struct UnavailableError {
pub cl: Consistency,
pub required: CInt,
pub alive: CInt,
}
Expand description
Additional info about [unavailable exception] (https://github.com/apache/cassandra/blob/trunk/doc/native_protocol_v4.spec#L1025)
Fields§
§cl: Consistency
Consistency level of query.
required: CInt
Number of nodes that should be available to respect cl
.
alive: CInt
Number of replicas that we were know to be alive.
Trait Implementations§
source§fn from_cursor(cursor: &mut Cursor<&[u8]>) -> Result<UnavailableError>
fn from_cursor(cursor: &mut Cursor<&[u8]>) -> Result<UnavailableError>
It should return an implementor from an
io::Cursor
over an array of bytes.