Trait DeviceProxyInterface
Source pub trait DeviceProxyInterface: Send + Sync {
type GetEssentialParamsResponseFut: Future<Output = Result<DeviceGetEssentialParamsResult, Error>> + Send;
type SetEssentialParamsResponseFut: Future<Output = Result<DeviceSetEssentialParamsResult, Error>> + Send;
type GetConfigResponseFut: Future<Output = Result<[u8; 104], Error>> + Send;
type SetProcessedFifoDataResponseFut: Future<Output = Result<(), Error>> + Send;
type GetStepAndJeitaParamsResponseFut: Future<Output = Result<[u8; 247], Error>> + Send;
type GetBatteryConfigResponseFut: Future<Output = Result<[u8; 304], Error>> + Send;
type GetBatteryProfileResponseFut: Future<Output = Result<DeviceGetBatteryProfileResult, Error>> + Send;
type GetIioValueResponseFut: Future<Output = Result<DeviceGetIioValueResult, Error>> + Send;
// Required methods
fn get_essential_params(&self) -> Self::GetEssentialParamsResponseFut;
fn set_essential_params(
&self,
params: &[u8; 48],
) -> Self::SetEssentialParamsResponseFut;
fn get_config(&self) -> Self::GetConfigResponseFut;
fn set_processed_fifo_data(
&self,
data: &[u8; 152],
) -> Self::SetProcessedFifoDataResponseFut;
fn get_step_and_jeita_params(
&self,
) -> Self::GetStepAndJeitaParamsResponseFut;
fn get_battery_config(&self) -> Self::GetBatteryConfigResponseFut;
fn get_battery_profile(
&self,
request: &[u8; 8],
) -> Self::GetBatteryProfileResponseFut;
fn get_iio_value(&self, label: &str) -> Self::GetIioValueResponseFut;
}