pub trait ParamService:
Send
+ Sync
+ 'static {
// Required methods
fn get_param_int<'life0, 'async_trait>(
&'life0 self,
request: Request<GetParamIntRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetParamIntResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_param_int<'life0, 'async_trait>(
&'life0 self,
request: Request<SetParamIntRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SetParamIntResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_param_float<'life0, 'async_trait>(
&'life0 self,
request: Request<GetParamFloatRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetParamFloatResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_param_float<'life0, 'async_trait>(
&'life0 self,
request: Request<SetParamFloatRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SetParamFloatResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_all_params<'life0, 'async_trait>(
&'life0 self,
request: Request<GetAllParamsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetAllParamsResponse>, 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 ParamServiceServer.
Required Methods§
Sourcefn get_param_int<'life0, 'async_trait>(
&'life0 self,
request: Request<GetParamIntRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetParamIntResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_param_int<'life0, 'async_trait>(
&'life0 self,
request: Request<GetParamIntRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetParamIntResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get an int parameter.
If the type is wrong, the result will be WRONG_TYPE
.
Sourcefn set_param_int<'life0, 'async_trait>(
&'life0 self,
request: Request<SetParamIntRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SetParamIntResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_param_int<'life0, 'async_trait>(
&'life0 self,
request: Request<SetParamIntRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SetParamIntResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Set an int parameter.
If the type is wrong, the result will be WRONG_TYPE
.
Sourcefn get_param_float<'life0, 'async_trait>(
&'life0 self,
request: Request<GetParamFloatRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetParamFloatResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_param_float<'life0, 'async_trait>(
&'life0 self,
request: Request<GetParamFloatRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetParamFloatResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get a float parameter.
If the type is wrong, the result will be WRONG_TYPE
.
Sourcefn set_param_float<'life0, 'async_trait>(
&'life0 self,
request: Request<SetParamFloatRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SetParamFloatResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_param_float<'life0, 'async_trait>(
&'life0 self,
request: Request<SetParamFloatRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SetParamFloatResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Set a float parameter.
If the type is wrong, the result will be WRONG_TYPE
.
Sourcefn get_all_params<'life0, 'async_trait>(
&'life0 self,
request: Request<GetAllParamsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetAllParamsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_all_params<'life0, 'async_trait>(
&'life0 self,
request: Request<GetAllParamsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetAllParamsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get all parameters.