cdrs-tokio 8.1.8

Async Cassandra DB driver written in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use derive_more::Display;

/// Determines how the driver will manage connections to a Cassandra node.
#[derive(Debug, Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash, Display)]
pub enum NodeDistance {
    /// An "active" distance that, indicates that the driver should maintain connections to the
    /// node; it also marks it as "preferred", meaning that the node may have priority for
    /// some tasks (for example, being chosen as the control connection host).
    Local,
    /// An "active" distance that, indicates that the driver should maintain connections to the
    /// node; it also marks it as "less preferred", meaning that other nodes may have a higher
    /// priority for some tasks (for example, being chosen as the control connection host).
    Remote,
}