Skip to main content

BatteryProxyInterface

Trait BatteryProxyInterface 

Source
pub trait BatteryProxyInterface: Send + Sync {
    type GetSpecResponseFut: Future<Output = Result<BatteryGetSpecResult, Error>> + Send;
    type GetStatusResponseFut: Future<Output = Result<BatteryGetStatusResult, Error>> + Send;
    type ConfigureWatchResponseFut: Future<Output = Result<BatteryConfigureWatchResult, Error>> + Send;
    type WatchResponseFut: Future<Output = Result<BatteryWatchResult, Error>> + Send;

    // Required methods
    fn get_spec(&self) -> Self::GetSpecResponseFut;
    fn get_status(&self) -> Self::GetStatusResponseFut;
    fn configure_watch(
        &self,
        options: &WatchOptions,
    ) -> Self::ConfigureWatchResponseFut;
    fn watch(&self, lease: Option<EventPair>) -> Self::WatchResponseFut;
}

Required Associated Types§

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§