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

Required Methods§

source

async fn open( &self, openmode: OpenMode, partition: &StatefulServicePartition, cancellation_token: CancellationToken, ) -> Result<impl PrimaryReplicator>

source

async fn change_role( &self, newrole: ReplicaRole, cancellation_token: CancellationToken, ) -> Result<HSTRING>

source

async fn close(&self, cancellation_token: CancellationToken) -> Result<()>

source

fn abort(&self)

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<TraitVariantBlanketType: StatefulServiceReplica> LocalStatefulServiceReplica for TraitVariantBlanketType