1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
pub(crate) mod caching_session;
mod cluster;
pub(crate) mod connection;
mod connection_pool;
pub mod errors;
pub mod iterator;
pub mod load_balancing;
pub(crate) mod metrics;
mod node;
pub mod query_result;
pub mod retry_policy;
pub mod session;
pub mod session_builder;
pub mod speculative_execution;
pub mod topology;
#[cfg(test)]
mod authenticate_test;
#[cfg(test)]
pub(crate) mod session_test;
pub use cluster::ClusterData;
pub use node::Node;
#[derive(Debug, PartialEq)]
pub enum Authenticator {
AllowAllAuthenticator,
PasswordAuthenticator,
CassandraPasswordAuthenticator,
CassandraAllowAllAuthenticator,
ScyllaTransitionalAuthenticator,
}
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Debug)]
pub enum Compression {
Lz4,
Snappy,
}
impl ToString for Compression {
fn to_string(&self) -> String {
match self {
Compression::Lz4 => "lz4".to_owned(),
Compression::Snappy => "snappy".to_owned(),
}
}
}