pub trait LocalPrimaryReplicator: Replicator {
    // Required methods
    async fn on_data_loss(&self) -> Result<u8>;
    fn update_catch_up_replica_set_configuration(
        &self,
        currentconfiguration: &ReplicaSetConfig,
        previousconfiguration: &ReplicaSetConfig
    ) -> Result<()>;
    async fn wait_for_catch_up_quorum(
        &self,
        catchupmode: ReplicaSetQuarumMode
    ) -> Result<()>;
    fn update_current_replica_set_configuration(
        &self,
        currentconfiguration: &ReplicaSetConfig
    ) -> Result<()>;
    async fn build_replica(&self, replica: &ReplicaInfo) -> Result<()>;
    fn remove_replica(&self, replicaid: i64) -> Result<()>;
}

Required Methods§

source

async fn on_data_loss(&self) -> Result<u8>

source

fn update_catch_up_replica_set_configuration( &self, currentconfiguration: &ReplicaSetConfig, previousconfiguration: &ReplicaSetConfig ) -> Result<()>

source

async fn wait_for_catch_up_quorum( &self, catchupmode: ReplicaSetQuarumMode ) -> Result<()>

source

fn update_current_replica_set_configuration( &self, currentconfiguration: &ReplicaSetConfig ) -> Result<()>

source

async fn build_replica(&self, replica: &ReplicaInfo) -> Result<()>

source

fn remove_replica(&self, replicaid: i64) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<TraitVariantBlanketType> LocalPrimaryReplicator for TraitVariantBlanketType
where TraitVariantBlanketType: PrimaryReplicator,