Trait mav_sdk::grpc::param::param_service_server::ParamService[][src]

pub trait ParamService: Send + Sync + 'static {
    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
        'life0: 'async_trait,
        Self: '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
        'life0: 'async_trait,
        Self: '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
        'life0: 'async_trait,
        Self: '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
        'life0: 'async_trait,
        Self: '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
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

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

Required methods

Get an int parameter.

If the type is wrong, the result will be WRONG_TYPE.

Set an int parameter.

If the type is wrong, the result will be WRONG_TYPE.

Get a float parameter.

If the type is wrong, the result will be WRONG_TYPE.

Set a float parameter.

If the type is wrong, the result will be WRONG_TYPE.

Get all parameters.

Implementors