fidl_fuchsia_hardware_lightTrait LightProxyInterface
Source pub trait LightProxyInterface: Send + Sync {
Show 32 associated items
type GetNumLightsResponseFut: Future<Output = Result<u32, Error>> + Send;
type GetNumLightGroupsResponseFut: Future<Output = Result<u32, Error>> + Send;
type GetInfoResponseFut: Future<Output = Result<LightGetInfoResult, Error>> + Send;
type GetCurrentSimpleValueResponseFut: Future<Output = Result<LightGetCurrentSimpleValueResult, Error>> + Send;
type SetSimpleValueResponseFut: Future<Output = Result<LightSetSimpleValueResult, Error>> + Send;
type GetCurrentBrightnessValueResponseFut: Future<Output = Result<LightGetCurrentBrightnessValueResult, Error>> + Send;
type SetBrightnessValueResponseFut: Future<Output = Result<LightSetBrightnessValueResult, Error>> + Send;
type GetCurrentRgbValueResponseFut: Future<Output = Result<LightGetCurrentRgbValueResult, Error>> + Send;
type SetRgbValueResponseFut: Future<Output = Result<LightSetRgbValueResult, Error>> + Send;
type GetGroupInfoResponseFut: Future<Output = Result<LightGetGroupInfoResult, Error>> + Send;
type GetGroupCurrentSimpleValueResponseFut: Future<Output = Result<LightGetGroupCurrentSimpleValueResult, Error>> + Send;
type SetGroupSimpleValueResponseFut: Future<Output = Result<LightSetGroupSimpleValueResult, Error>> + Send;
type GetGroupCurrentBrightnessValueResponseFut: Future<Output = Result<LightGetGroupCurrentBrightnessValueResult, Error>> + Send;
type SetGroupBrightnessValueResponseFut: Future<Output = Result<LightSetGroupBrightnessValueResult, Error>> + Send;
type GetGroupCurrentRgbValueResponseFut: Future<Output = Result<LightGetGroupCurrentRgbValueResult, Error>> + Send;
type SetGroupRgbValueResponseFut: Future<Output = Result<LightSetGroupRgbValueResult, Error>> + Send;
// Required methods
fn get_num_lights(&self) -> Self::GetNumLightsResponseFut;
fn get_num_light_groups(&self) -> Self::GetNumLightGroupsResponseFut;
fn get_info(&self, index: u32) -> Self::GetInfoResponseFut;
fn get_current_simple_value(
&self,
index: u32,
) -> Self::GetCurrentSimpleValueResponseFut;
fn set_simple_value(
&self,
index: u32,
value: bool,
) -> Self::SetSimpleValueResponseFut;
fn get_current_brightness_value(
&self,
index: u32,
) -> Self::GetCurrentBrightnessValueResponseFut;
fn set_brightness_value(
&self,
index: u32,
value: f64,
) -> Self::SetBrightnessValueResponseFut;
fn get_current_rgb_value(
&self,
index: u32,
) -> Self::GetCurrentRgbValueResponseFut;
fn set_rgb_value(
&self,
index: u32,
value: &Rgb,
) -> Self::SetRgbValueResponseFut;
fn get_group_info(&self, group_id: u32) -> Self::GetGroupInfoResponseFut;
fn get_group_current_simple_value(
&self,
group_id: u32,
) -> Self::GetGroupCurrentSimpleValueResponseFut;
fn set_group_simple_value(
&self,
group_id: u32,
values: &[bool],
) -> Self::SetGroupSimpleValueResponseFut;
fn get_group_current_brightness_value(
&self,
group_id: u32,
) -> Self::GetGroupCurrentBrightnessValueResponseFut;
fn set_group_brightness_value(
&self,
group_id: u32,
values: &[f64],
) -> Self::SetGroupBrightnessValueResponseFut;
fn get_group_current_rgb_value(
&self,
group_id: u32,
) -> Self::GetGroupCurrentRgbValueResponseFut;
fn set_group_rgb_value(
&self,
group_id: u32,
values: &[Rgb],
) -> Self::SetGroupRgbValueResponseFut;
}