pub struct ClusterConfiguration {
pub max_nodes: u32,
pub heartbeat_interval: Duration,
pub failure_timeout: Duration,
pub max_retries: u32,
pub load_balancing: LoadBalancingStrategy,
pub fault_tolerance: FaultToleranceMode,
pub consistency_level: ConsistencyLevel,
}Expand description
Cluster configuration parameters
Fields§
§max_nodes: u32Maximum number of nodes
heartbeat_interval: DurationHeartbeat interval
failure_timeout: DurationNode failure timeout
max_retries: u32Message retry limit
load_balancing: LoadBalancingStrategyLoad balancing strategy
fault_tolerance: FaultToleranceModeFault tolerance mode
consistency_level: ConsistencyLevelConsistency requirements
Trait Implementations§
Source§impl Clone for ClusterConfiguration
impl Clone for ClusterConfiguration
Source§fn clone(&self) -> ClusterConfiguration
fn clone(&self) -> ClusterConfiguration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClusterConfiguration
impl Debug for ClusterConfiguration
Source§impl Default for ClusterConfiguration
impl Default for ClusterConfiguration
Source§impl<'de> Deserialize<'de> for ClusterConfiguration
impl<'de> Deserialize<'de> for ClusterConfiguration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ClusterConfiguration
impl RefUnwindSafe for ClusterConfiguration
impl Send for ClusterConfiguration
impl Sync for ClusterConfiguration
impl Unpin for ClusterConfiguration
impl UnwindSafe for ClusterConfiguration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more