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;
}
Expand description
Generated trait containing gRPC methods that should be implemented for use with ScsControlServer.