Skip to main content

DeviceProxyInterface

Trait DeviceProxyInterface 

Source
pub trait DeviceProxyInterface: Send + Sync {
    type GetTemperatureCelsiusResponseFut: Future<Output = Result<(i32, f32), Error>> + Send;
    type GetSensorNameResponseFut: Future<Output = Result<String, Error>> + Send;

    // Required methods
    fn get_temperature_celsius(&self) -> Self::GetTemperatureCelsiusResponseFut;
    fn get_sensor_name(&self) -> Self::GetSensorNameResponseFut;
}

Required Associated Types§

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§