pub trait ScsControl: Send + Sync + 'static {
    // Required methods
    fn create_cache<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CreateCacheRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<CreateCacheResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_cache<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DeleteCacheRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<DeleteCacheResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list_caches<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ListCachesRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<ListCachesResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn flush_cache<'life0, 'async_trait>(
        &'life0 self,
        request: Request<FlushCacheRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<FlushCacheResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_signing_key<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CreateSigningKeyRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<CreateSigningKeyResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn revoke_signing_key<'life0, 'async_trait>(
        &'life0 self,
        request: Request<RevokeSigningKeyRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<RevokeSigningKeyResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list_signing_keys<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ListSigningKeysRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<ListSigningKeysResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn generate_api_token<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GenerateApiTokenRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GenerateApiTokenResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with ScsControlServer.

Required Methods§

source

fn create_cache<'life0, 'async_trait>( &'life0 self, request: Request<CreateCacheRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<CreateCacheResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn delete_cache<'life0, 'async_trait>( &'life0 self, request: Request<DeleteCacheRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<DeleteCacheResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn list_caches<'life0, 'async_trait>( &'life0 self, request: Request<ListCachesRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<ListCachesResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn flush_cache<'life0, 'async_trait>( &'life0 self, request: Request<FlushCacheRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<FlushCacheResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn create_signing_key<'life0, 'async_trait>( &'life0 self, request: Request<CreateSigningKeyRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<CreateSigningKeyResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn revoke_signing_key<'life0, 'async_trait>( &'life0 self, request: Request<RevokeSigningKeyRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<RevokeSigningKeyResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn list_signing_keys<'life0, 'async_trait>( &'life0 self, request: Request<ListSigningKeysRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<ListSigningKeysResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn generate_api_token<'life0, 'async_trait>( &'life0 self, request: Request<GenerateApiTokenRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<GenerateApiTokenResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

api for programatically generating api and refresh tokens

Implementors§