Skip to main content

DeviceProxyInterface

Trait DeviceProxyInterface 

Source
pub trait DeviceProxyInterface: Send + Sync {
    type GetFanLevelResponseFut: Future<Output = Result<(i32, u32), Error>> + Send;
    type SetFanLevelResponseFut: Future<Output = Result<i32, Error>> + Send;
    type GetClientTypeResponseFut: Future<Output = Result<String, Error>> + Send;

    // Required methods
    fn get_fan_level(&self) -> Self::GetFanLevelResponseFut;
    fn set_fan_level(&self, fan_level: u32) -> Self::SetFanLevelResponseFut;
    fn get_client_type(&self) -> Self::GetClientTypeResponseFut;
}

Required Associated Types§

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§