fidl_fuchsia_ui_brightness

Trait ControlProxyInterface

Source
pub trait ControlProxyInterface: Send + Sync {
    type WatchAutoBrightnessResponseFut: Future<Output = Result<bool, Error>> + Send;
    type WatchCurrentBrightnessResponseFut: Future<Output = Result<f32, Error>> + Send;
    type WatchAutoBrightnessAdjustmentResponseFut: Future<Output = Result<f32, Error>> + Send;
    type GetMaxAbsoluteBrightnessResponseFut: Future<Output = Result<ControlGetMaxAbsoluteBrightnessResult, Error>> + Send;

    // Required methods
    fn set_auto_brightness(&self) -> Result<(), Error>;
    fn watch_auto_brightness(&self) -> Self::WatchAutoBrightnessResponseFut;
    fn set_manual_brightness(&self, value: f32) -> Result<(), Error>;
    fn set_manual_brightness_smooth(
        &self,
        value: f32,
        duration: i64,
    ) -> Result<(), Error>;
    fn watch_current_brightness(
        &self,
    ) -> Self::WatchCurrentBrightnessResponseFut;
    fn set_auto_brightness_adjustment(
        &self,
        adjustment: f32,
    ) -> Result<(), Error>;
    fn watch_auto_brightness_adjustment(
        &self,
    ) -> Self::WatchAutoBrightnessAdjustmentResponseFut;
    fn set_brightness_table(&self, table: &BrightnessTable) -> Result<(), Error>;
    fn get_max_absolute_brightness(
        &self,
    ) -> Self::GetMaxAbsoluteBrightnessResponseFut;
}

Required Associated Types§

Required Methods§

Implementors§