pacifica-rs 1.0.0

rust implementation of PacificA: Replication in Log-Based Distributed Storage Systems
1
2
3
4
5
6
7
8
9
10
use crate::fsm::StateMachine;
use crate::{Replica, ReplicaId, TypeConfig};

/// Replica Router. for find your Replica by replica_id
pub trait ReplicaRouter: Send + Sync +'static {
    fn replica<C, FSM>(&self, replica_id: &ReplicaId<C::NodeId>) -> Option<Replica<C, FSM>>
    where
        C: TypeConfig,
        FSM: StateMachine<C>;
}