Trait mssf_core::runtime::stateful::StatefulServiceReplica

source ·
pub trait StatefulServiceReplica:
    Send
    + Sync
    + 'static
    + Send {
    // Required methods
    fn open(
        &self,
        openmode: OpenMode,
        partition: &StatefulServicePartition,
        cancellation_token: CancellationToken,
    ) -> impl Future<Output = Result<impl PrimaryReplicator>> + Send;
    fn change_role(
        &self,
        newrole: ReplicaRole,
        cancellation_token: CancellationToken,
    ) -> impl Future<Output = Result<HSTRING>> + Send;
    fn close(
        &self,
        cancellation_token: CancellationToken,
    ) -> impl Future<Output = Result<()>> + Send;
    fn abort(&self);
}

Required Methods§

source

fn open( &self, openmode: OpenMode, partition: &StatefulServicePartition, cancellation_token: CancellationToken, ) -> impl Future<Output = Result<impl PrimaryReplicator>> + Send

source

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

source

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

source

fn abort(&self)

Object Safety§

This trait is not object safe.

Implementors§