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;
// 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;
}Required Associated Types§
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
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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".