Trait mssf_core::runtime::stateful::Replicator

source ·
pub trait Replicator:
    Send
    + Sync
    + 'static
    + Send {
    // Required methods
    fn open(
        &self,
        cancellation_token: CancellationToken,
    ) -> impl Future<Output = Result<HSTRING>> + Send;
    fn close(
        &self,
        cancellation_token: CancellationToken,
    ) -> impl Future<Output = Result<()>> + Send;
    fn change_role(
        &self,
        epoch: &Epoch,
        role: &ReplicaRole,
        cancellation_token: CancellationToken,
    ) -> impl Future<Output = Result<()>> + Send;
    fn update_epoch(
        &self,
        epoch: &Epoch,
        cancellation_token: CancellationToken,
    ) -> impl Future<Output = Result<()>> + Send;
    fn get_current_progress(&self) -> Result<i64>;
    fn get_catch_up_capability(&self) -> Result<i64>;
    fn abort(&self);
}

Required Methods§

source

fn open( &self, cancellation_token: CancellationToken, ) -> impl Future<Output = Result<HSTRING>> + Send

source

fn close( &self, cancellation_token: CancellationToken, ) -> impl Future<Output = Result<()>> + Send

source

fn change_role( &self, epoch: &Epoch, role: &ReplicaRole, cancellation_token: CancellationToken, ) -> impl Future<Output = Result<()>> + Send

source

fn update_epoch( &self, epoch: &Epoch, cancellation_token: CancellationToken, ) -> impl Future<Output = Result<()>> + Send

source

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

source

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

source

fn abort(&self)

Object Safety§

This trait is not object safe.

Implementors§