Trait mssf_core::runtime::stateful::LocalReplicator
source · pub trait LocalReplicator:
Send
+ Sync
+ 'static {
// Required methods
async fn open(
&self,
cancellation_token: CancellationToken,
) -> Result<HSTRING>;
async fn close(&self, cancellation_token: CancellationToken) -> Result<()>;
async fn change_role(
&self,
epoch: &Epoch,
role: &ReplicaRole,
cancellation_token: CancellationToken,
) -> Result<()>;
async fn update_epoch(
&self,
epoch: &Epoch,
cancellation_token: CancellationToken,
) -> Result<()>;
fn get_current_progress(&self) -> Result<i64>;
fn get_catch_up_capability(&self) -> Result<i64>;
fn abort(&self);
}
Required Methods§
async fn open(&self, cancellation_token: CancellationToken) -> Result<HSTRING>
async fn close(&self, cancellation_token: CancellationToken) -> Result<()>
async fn change_role( &self, epoch: &Epoch, role: &ReplicaRole, cancellation_token: CancellationToken, ) -> Result<()>
async fn update_epoch( &self, epoch: &Epoch, cancellation_token: CancellationToken, ) -> Result<()>
fn get_current_progress(&self) -> Result<i64>
fn get_catch_up_capability(&self) -> Result<i64>
fn abort(&self)
Object Safety§
This trait is not object safe.