pub trait Api:
Send
+ Sync
+ 'static {
Show 13 methods
// Required methods
fn create_charger<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateChargerRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateChargerResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_charger<'life0, 'async_trait>(
&'life0 self,
request: Request<GetChargerRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetChargerResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_chargers<'life0, 'async_trait>(
&'life0 self,
request: Request<GetChargersRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetChargersResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn reboot_charger<'life0, 'async_trait>(
&'life0 self,
request: Request<RebootChargerRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<RebootChargerResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn cancel_outlet_reservation<'life0, 'async_trait>(
&'life0 self,
request: Request<CancelOutletReservationRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CancelOutletReservationResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn change_charger_availability<'life0, 'async_trait>(
&'life0 self,
request: Request<ChangeChargerAvailabilityRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ChangeChargerAvailabilityResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn change_evse_availability<'life0, 'async_trait>(
&'life0 self,
request: Request<ChangeEvseAvailabilityRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ChangeEvseAvailabilityResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn change_connector_availability<'life0, 'async_trait>(
&'life0 self,
request: Request<ChangeConnectorAvailabilityRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ChangeConnectorAvailabilityResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn change_ocpp1_6configuration_value<'life0, 'async_trait>(
&'life0 self,
request: Request<ChangeOcpp16configurationValueRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ChangeOcpp16configurationValueResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn clear_charger_cache<'life0, 'async_trait>(
&'life0 self,
request: Request<ClearChargerCacheRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ClearChargerCacheResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn start_transaction<'life0, 'async_trait>(
&'life0 self,
request: Request<StartTransactionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<StartTransactionResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn stop_transaction<'life0, 'async_trait>(
&'life0 self,
request: Request<StopTransactionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<StopTransactionResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_ongoing_transaction<'life0, 'async_trait>(
&'life0 self,
request: Request<GetOngoingTransactionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetOngoingTransactionResponse>, 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 ApiServer.