pub trait SystemParamsService:
Send
+ Sync
+ 'static {
// Required methods
fn get_system_params<'life0, 'async_trait>(
&'life0 self,
request: Request<GetSystemParamsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetSystemParamsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_system_param<'life0, 'async_trait>(
&'life0 self,
request: Request<SetSystemParamRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SetSystemParamResponse>, 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 SystemParamsServiceServer.
Required Methods§
fn get_system_params<'life0, 'async_trait>(
&'life0 self,
request: Request<GetSystemParamsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetSystemParamsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_system_param<'life0, 'async_trait>(
&'life0 self,
request: Request<SetSystemParamRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SetSystemParamResponse>, 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".