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§
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)
Object Safety§
This trait is not object safe.