pub trait DeviceProxyInterface: Send + Sync {
type GetPowerWattsResponseFut: Future<Output = Result<DeviceGetPowerWattsResult, Error>> + Send;
type GetVoltageVoltsResponseFut: Future<Output = Result<DeviceGetVoltageVoltsResult, Error>> + Send;
type GetSensorNameResponseFut: Future<Output = Result<String, Error>> + Send;
// Required methods
fn get_power_watts(&self) -> Self::GetPowerWattsResponseFut;
fn get_voltage_volts(&self) -> Self::GetVoltageVoltsResponseFut;
fn get_sensor_name(&self) -> Self::GetSensorNameResponseFut;
}Required Associated Types§
type GetPowerWattsResponseFut: Future<Output = Result<DeviceGetPowerWattsResult, Error>> + Send
type GetVoltageVoltsResponseFut: Future<Output = Result<DeviceGetVoltageVoltsResult, Error>> + Send
type GetSensorNameResponseFut: Future<Output = Result<String, Error>> + Send
Required Methods§
fn get_power_watts(&self) -> Self::GetPowerWattsResponseFut
fn get_voltage_volts(&self) -> Self::GetVoltageVoltsResponseFut
fn get_sensor_name(&self) -> Self::GetSensorNameResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".