1 2 3 4 5 6 7 8 9 10 11 12 13
use fxhash::FxHashMap; /// A replication strategy determines the nodes where replicas are placed. #[derive(Debug, Clone)] pub enum ReplicationStrategy { SimpleStrategy { replication_factor: usize, }, NetworkTopologyStrategy { datacenter_replication_factor: FxHashMap<String, usize>, }, Other, }