pub trait StatelessServiceInstance:
    Send
    + Sync
    + 'static
    + Send {
    // Required methods
    fn open(
        &self,
        partition: &StatelessServicePartition,
        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, partition: &StatelessServicePartition, 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§