pub struct PrimaryReplicatorProxy { /* private fields */ }

Implementations§

Trait Implementations§

source§

impl PrimaryReplicator for PrimaryReplicatorProxy

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<()>

source§

impl Replicator for PrimaryReplicatorProxy

source§

async fn open(&self) -> Result<HSTRING>

source§

async fn close(&self) -> Result<()>

source§

async fn change_role(&self, epoch: &Epoch, role: &Role) -> Result<()>

source§

async fn update_epoch(&self, epoch: &Epoch) -> Result<()>

source§

fn get_current_progress(&self) -> Result<i64>

source§

fn get_catch_up_capability(&self) -> Result<i64>

source§

fn abort(&self)

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl<TraitVariantBlanketType> LocalReplicator for TraitVariantBlanketType
where TraitVariantBlanketType: Replicator,

source§

async fn open(&self) -> Result<HSTRING, Error>

source§

async fn close(&self) -> Result<(), Error>

source§

async fn change_role(&self, epoch: &Epoch, role: &Role) -> Result<(), Error>

source§

async fn update_epoch(&self, epoch: &Epoch) -> Result<(), Error>

source§

fn get_current_progress(&self) -> Result<i64, Error>

source§

fn get_catch_up_capability(&self) -> Result<i64, Error>

source§

fn abort(&self)

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.