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 WatchResponseFut: Future<Output = Result<(Status, Option<EventPair>), Error>> + Send;

    // Required methods
    fn get_spec(&self) -> Self::GetSpecResponseFut;
    fn get_status(&self) -> Self::GetStatusResponseFut;
    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 watch( &self, interest: &Status, wake_on: &Status, lease: Option<EventPair>, ) -> Self::WatchResponseFut

Implementors§