Skip to main content

ChargerProxyInterface

Trait ChargerProxyInterface 

Source
pub trait ChargerProxyInterface: Send + Sync {
    type GetSpecResponseFut: Future<Output = Result<ChargerGetSpecResult, Error>> + Send;
    type GetStatusResponseFut: Future<Output = Result<ChargerGetStatusResult, Error>> + Send;
    type SetChargingEnabledResponseFut: Future<Output = Result<ChargerSetChargingEnabledResult, Error>> + Send;
    type WatchResponseFut: Future<Output = Result<ChargerWatchResult, Error>> + Send;

    // Required methods
    fn get_spec(&self) -> Self::GetSpecResponseFut;
    fn get_status(&self) -> Self::GetStatusResponseFut;
    fn set_charging_enabled(
        &self,
        enabled: bool,
    ) -> Self::SetChargingEnabledResponseFut;
    fn watch(
        &self,
        interest: &Status,
        wake_on: &Status,
        lease: Option<EventPair>,
    ) -> Self::WatchResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn get_spec(&self) -> Self::GetSpecResponseFut

Source

fn get_status(&self) -> Self::GetStatusResponseFut

Source

fn set_charging_enabled( &self, enabled: bool, ) -> Self::SetChargingEnabledResponseFut

Source

fn watch( &self, interest: &Status, wake_on: &Status, lease: Option<EventPair>, ) -> Self::WatchResponseFut

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§