pub trait DeviceProxyInterface: Send + Sync {
    type GetStateNormalizedResponseFut: Future<Output = Result<DeviceGetStateNormalizedResult, Error>> + Send;
    type SetStateNormalizedResponseFut: Future<Output = Result<DeviceSetStateNormalizedResult, Error>> + Send;
    type GetStateAbsoluteResponseFut: Future<Output = Result<DeviceGetStateAbsoluteResult, Error>> + Send;
    type SetStateAbsoluteResponseFut: Future<Output = Result<DeviceSetStateAbsoluteResult, Error>> + Send;
    type GetMaxAbsoluteBrightnessResponseFut: Future<Output = Result<DeviceGetMaxAbsoluteBrightnessResult, Error>> + Send;
    type SetNormalizedBrightnessScaleResponseFut: Future<Output = Result<DeviceSetNormalizedBrightnessScaleResult, Error>> + Send;
    type GetNormalizedBrightnessScaleResponseFut: Future<Output = Result<DeviceGetNormalizedBrightnessScaleResult, Error>> + Send;

    // Required methods
    fn get_state_normalized(&self) -> Self::GetStateNormalizedResponseFut;
    fn set_state_normalized(
        &self,
        state: &State
    ) -> Self::SetStateNormalizedResponseFut;
    fn get_state_absolute(&self) -> Self::GetStateAbsoluteResponseFut;
    fn set_state_absolute(
        &self,
        state: &State
    ) -> Self::SetStateAbsoluteResponseFut;
    fn get_max_absolute_brightness(
        &self
    ) -> Self::GetMaxAbsoluteBrightnessResponseFut;
    fn set_normalized_brightness_scale(
        &self,
        scale: f64
    ) -> Self::SetNormalizedBrightnessScaleResponseFut;
    fn get_normalized_brightness_scale(
        &self
    ) -> Self::GetNormalizedBrightnessScaleResponseFut;
}

Required Associated Types§

Required Methods§

Implementors§