pub struct ReplicationManager { /* private fields */ }Implementations§
Source§impl ReplicationManager
impl ReplicationManager
pub fn new() -> Self
pub fn register_replica(&self, region: &str)
pub fn record_replication(&self, region: &str, seq: u64)
pub fn advance_local(&self) -> u64
pub fn local_seq(&self) -> u64
pub fn replica_lag(&self, region: &str) -> Option<u64>
pub fn replica_count(&self) -> usize
pub fn all_replicas(&self) -> Vec<ReplicaState>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ReplicationManager
impl RefUnwindSafe for ReplicationManager
impl Send for ReplicationManager
impl Sync for ReplicationManager
impl Unpin for ReplicationManager
impl UnsafeUnpin for ReplicationManager
impl UnwindSafe for ReplicationManager
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