pub trait ConfigService:
Send
+ Sync
+ 'static {
// Required methods
fn show_config<'life0, 'async_trait>(
&'life0 self,
request: Request<ShowConfigRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ShowConfigResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn resize_cache<'life0, 'async_trait>(
&'life0 self,
request: Request<ResizeCacheRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ResizeCacheResponse>, 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 ConfigServiceServer.
Required Methods§
fn show_config<'life0, 'async_trait>(
&'life0 self,
request: Request<ShowConfigRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ShowConfigResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn resize_cache<'life0, 'async_trait>(
&'life0 self,
request: Request<ResizeCacheRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ResizeCacheResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".