Struct OCPP1_6Client

Source
pub struct OCPP1_6Client { /* private fields */ }
Expand description

OCPP 1.6 client

Implementations§

Source§

impl OCPP1_6Client

Source

pub async fn disconnect(&self) -> Result<(), Box<dyn Error + Send + Sync>>

Disconnect from the server

Source

pub async fn send_authorize( &self, request: AuthorizeRequest, ) -> Result<Result<AuthorizeResponse, OCPP1_6Error>, Box<dyn Error + Send + Sync>>

Source

pub async fn send_boot_notification( &self, request: BootNotificationRequest, ) -> Result<Result<BootNotificationResponse, OCPP1_6Error>, Box<dyn Error + Send + Sync>>

Source

pub async fn send_data_transfer( &self, request: DataTransferRequest, ) -> Result<Result<DataTransferResponse, OCPP1_6Error>, Box<dyn Error + Send + Sync>>

Source

pub async fn send_diagnostics_status_notification( &self, request: DiagnosticsStatusNotificationRequest, ) -> Result<Result<DiagnosticsStatusNotificationResponse, OCPP1_6Error>, Box<dyn Error + Send + Sync>>

Source

pub async fn send_firmware_status_notification( &self, request: FirmwareStatusNotificationRequest, ) -> Result<Result<FirmwareStatusNotificationResponse, OCPP1_6Error>, Box<dyn Error + Send + Sync>>

Source

pub async fn send_heartbeat( &self, request: HeartbeatRequest, ) -> Result<Result<HeartbeatResponse, OCPP1_6Error>, Box<dyn Error + Send + Sync>>

Source

pub async fn send_meter_values( &self, request: MeterValuesRequest, ) -> Result<Result<MeterValuesResponse, OCPP1_6Error>, Box<dyn Error + Send + Sync>>

Source

pub async fn send_start_transaction( &self, request: StartTransactionRequest, ) -> Result<Result<StartTransactionResponse, OCPP1_6Error>, Box<dyn Error + Send + Sync>>

Source

pub async fn send_status_notification( &self, request: StatusNotificationRequest, ) -> Result<Result<StatusNotificationResponse, OCPP1_6Error>, Box<dyn Error + Send + Sync>>

Source

pub async fn send_stop_transaction( &self, request: StopTransactionRequest, ) -> Result<Result<StopTransactionResponse, OCPP1_6Error>, Box<dyn Error + Send + Sync>>

Source

pub async fn send_ping(&self) -> Result<(), Box<dyn Error + Send + Sync>>

Source

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, )

Source

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, )

Source

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, )

Source

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, )

Source

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, )

Source

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, )

Source

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, )

Source

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, )

Source

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, )

Source

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, )

Source

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, )

Source

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, )

Source

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, )

Source

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, )

Source

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, )

Source

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, )

Source

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, )

Source

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, )

Source

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, )

Source

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

Source§

fn clone(&self) -> OCPP1_6Client

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> ErasedDestructor for T
where T: 'static,