pub struct OCPP1_6Client { /* private fields */ }
Expand description
OCPP 1.6 client
Implementations§
Source§impl OCPP1_6Client
impl OCPP1_6Client
Sourcepub async fn disconnect(&self) -> Result<(), Box<dyn Error + Send + Sync>>
pub async fn disconnect(&self) -> Result<(), Box<dyn Error + Send + Sync>>
Disconnect from the server
pub async fn send_boot_notification( &self, request: BootNotificationRequest, ) -> Result<Result<BootNotificationResponse, OCPP1_6Error>, Box<dyn Error + Send + Sync>>
pub async fn send_data_transfer( &self, request: DataTransferRequest, ) -> Result<Result<DataTransferResponse, OCPP1_6Error>, Box<dyn Error + Send + Sync>>
pub async fn send_diagnostics_status_notification( &self, request: DiagnosticsStatusNotificationRequest, ) -> Result<Result<DiagnosticsStatusNotificationResponse, OCPP1_6Error>, Box<dyn Error + Send + Sync>>
pub async fn send_firmware_status_notification( &self, request: FirmwareStatusNotificationRequest, ) -> Result<Result<FirmwareStatusNotificationResponse, OCPP1_6Error>, Box<dyn Error + Send + Sync>>
pub async fn send_heartbeat( &self, request: HeartbeatRequest, ) -> Result<Result<HeartbeatResponse, OCPP1_6Error>, Box<dyn Error + Send + Sync>>
pub async fn send_meter_values( &self, request: MeterValuesRequest, ) -> Result<Result<MeterValuesResponse, OCPP1_6Error>, Box<dyn Error + Send + Sync>>
pub async fn send_start_transaction( &self, request: StartTransactionRequest, ) -> Result<Result<StartTransactionResponse, OCPP1_6Error>, Box<dyn Error + Send + Sync>>
pub async fn send_status_notification( &self, request: StatusNotificationRequest, ) -> Result<Result<StatusNotificationResponse, OCPP1_6Error>, Box<dyn Error + Send + Sync>>
pub async fn send_stop_transaction( &self, request: StopTransactionRequest, ) -> Result<Result<StopTransactionResponse, OCPP1_6Error>, Box<dyn Error + Send + Sync>>
pub async fn send_ping(&self) -> Result<(), Box<dyn Error + Send + Sync>>
pub async fn on_cancel_reservation<F: FnMut(CancelReservationRequest, Self) -> FF + Send + Sync + 'static, FF: Future<Output = Result<CancelReservationResponse, OCPP1_6Error>> + Send + Sync>( &self, callback: F, )
pub async fn on_change_availability<F: FnMut(ChangeAvailabilityRequest, Self) -> FF + Send + Sync + 'static, FF: Future<Output = Result<ChangeAvailabilityResponse, OCPP1_6Error>> + Send + Sync>( &self, callback: F, )
pub async fn on_change_configuration<F: FnMut(ChangeConfigurationRequest, Self) -> FF + Send + Sync + 'static, FF: Future<Output = Result<ChangeConfigurationResponse, OCPP1_6Error>> + Send + Sync>( &self, callback: F, )
pub async fn on_clear_cache<F: FnMut(ClearCacheRequest, Self) -> FF + Send + Sync + 'static, FF: Future<Output = Result<ClearCacheResponse, OCPP1_6Error>> + Send + Sync>( &self, callback: F, )
pub async fn on_clear_charging_profile<F: FnMut(ClearChargingProfileRequest, Self) -> FF + Send + Sync + 'static, FF: Future<Output = Result<ClearChargingProfileResponse, OCPP1_6Error>> + Send + Sync>( &self, callback: F, )
pub async fn on_data_transfer<F: FnMut(DataTransferRequest, Self) -> FF + Send + Sync + 'static, FF: Future<Output = Result<DataTransferResponse, OCPP1_6Error>> + Send + Sync>( &self, callback: F, )
pub async fn on_get_composite_schedule<F: FnMut(GetCompositeScheduleRequest, Self) -> FF + Send + Sync + 'static, FF: Future<Output = Result<GetCompositeScheduleResponse, OCPP1_6Error>> + Send + Sync>( &self, callback: F, )
pub async fn on_get_configuration<F: FnMut(GetConfigurationRequest, Self) -> FF + Send + Sync + 'static, FF: Future<Output = Result<GetConfigurationResponse, OCPP1_6Error>> + Send + Sync>( &self, callback: F, )
pub async fn on_get_diagnostics<F: FnMut(GetDiagnosticsRequest, Self) -> FF + Send + Sync + 'static, FF: Future<Output = Result<GetDiagnosticsResponse, OCPP1_6Error>> + Send + Sync>( &self, callback: F, )
pub async fn on_get_local_list_version<F: FnMut(GetLocalListVersionRequest, Self) -> FF + Send + Sync + 'static, FF: Future<Output = Result<GetLocalListVersionResponse, OCPP1_6Error>> + Send + Sync>( &self, callback: F, )
pub async fn on_remote_start_transaction<F: FnMut(RemoteStartTransactionRequest, Self) -> FF + Send + Sync + 'static, FF: Future<Output = Result<RemoteStartTransactionResponse, OCPP1_6Error>> + Send + Sync>( &self, callback: F, )
pub async fn on_remote_stop_transaction<F: FnMut(RemoteStopTransactionRequest, Self) -> FF + Send + Sync + 'static, FF: Future<Output = Result<RemoteStopTransactionResponse, OCPP1_6Error>> + Send + Sync>( &self, callback: F, )
pub async fn on_reserve_now<F: FnMut(ReserveNowRequest, Self) -> FF + Send + Sync + 'static, FF: Future<Output = Result<ReserveNowResponse, OCPP1_6Error>> + Send + Sync>( &self, callback: F, )
pub async fn on_reset<F: FnMut(ResetRequest, Self) -> FF + Send + Sync + 'static, FF: Future<Output = Result<ResetResponse, OCPP1_6Error>> + Send + Sync>( &self, callback: F, )
pub async fn on_send_local_list<F: FnMut(SendLocalListRequest, Self) -> FF + Send + Sync + 'static, FF: Future<Output = Result<SendLocalListResponse, OCPP1_6Error>> + Send + Sync>( &self, callback: F, )
pub async fn on_set_charging_profile<F: FnMut(SetChargingProfileRequest, Self) -> FF + Send + Sync + 'static, FF: Future<Output = Result<SetChargingProfileResponse, OCPP1_6Error>> + Send + Sync>( &self, callback: F, )
pub async fn on_trigger_message<F: FnMut(TriggerMessageRequest, Self) -> FF + Send + Sync + 'static, FF: Future<Output = Result<TriggerMessageResponse, OCPP1_6Error>> + Send + Sync>( &self, callback: F, )
pub async fn on_unlock_connector<F: FnMut(UnlockConnectorRequest, Self) -> FF + Send + Sync + 'static, FF: Future<Output = Result<UnlockConnectorResponse, OCPP1_6Error>> + Send + Sync>( &self, callback: F, )
pub async fn on_update_firmware<F: FnMut(UpdateFirmwareRequest, Self) -> FF + Send + Sync + 'static, FF: Future<Output = Result<UpdateFirmwareResponse, OCPP1_6Error>> + Send + Sync>( &self, callback: F, )
pub async fn on_ping<F: FnMut(Self) -> FF + Send + Sync + 'static, FF: Future<Output = ()> + Send + Sync>( &self, callback: F, )
Trait Implementations§
Source§impl Clone for OCPP1_6Client
impl Clone for OCPP1_6Client
Source§fn clone(&self) -> OCPP1_6Client
fn clone(&self) -> OCPP1_6Client
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for OCPP1_6Client
impl !RefUnwindSafe for OCPP1_6Client
impl Send for OCPP1_6Client
impl Sync for OCPP1_6Client
impl Unpin for OCPP1_6Client
impl !UnwindSafe for OCPP1_6Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more