pub trait BatteryProxyInterface: Send + Sync {
type GetBatteryConfigResponseFut: Future<Output = Result<[u8; 304], Error>> + Send;
type GetBatteryProfileResponseFut: Future<Output = Result<BatteryGetBatteryProfileResult, Error>> + Send;
// Required methods
fn get_battery_config(&self) -> Self::GetBatteryConfigResponseFut;
fn get_battery_profile(
&self,
request: &[u8; 8],
) -> Self::GetBatteryProfileResponseFut;
}Required Associated Types§
type GetBatteryConfigResponseFut: Future<Output = Result<[u8; 304], Error>> + Send
type GetBatteryProfileResponseFut: Future<Output = Result<BatteryGetBatteryProfileResult, Error>> + Send
Required Methods§
fn get_battery_config(&self) -> Self::GetBatteryConfigResponseFut
fn get_battery_profile( &self, request: &[u8; 8], ) -> Self::GetBatteryProfileResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".