Struct fidl_fuchsia_settings::DisplaySettings
source · pub struct DisplaySettings {
pub auto_brightness: Option<bool>,
pub brightness_value: Option<f32>,
pub low_light_mode: Option<LowLightMode>,
pub screen_enabled: Option<bool>,
pub theme: Option<Theme>,
pub adjusted_auto_brightness: Option<f32>,
/* private fields */
}
Expand description
DisplaySettings are used to determine the output state of the display. The display can be toggled between two modes, auto-brightness on and auto-brightness off.
Adjusted_auto_brightness is used to set a specific brightness level for the current lighting conditions. Auto-brightness will continue to make the screen darker and brighter as the surrounding light changes.
Brightness_value is used in manual mode to set a specific brightness level for the screen. This level will be maintained while in manual mode.
Fields§
§auto_brightness: Option<bool>
Auto brightness enabled.
brightness_value: Option<f32>
Manually set brightness value [0.0 - 1.0]. Not a number, infinity or negative infinity will cause SetDisplayInfo to fail with INVALID_VALUE.
low_light_mode: Option<LowLightMode>
The low light mode state of the device.
screen_enabled: Option<bool>
Whether the screen is enabled.
theme: Option<Theme>
Theme to be used for the device’s user interface.
adjusted_auto_brightness: Option<f32>
Brightness value to adjust auto-brightness to [0.0 - 1.0].
Implementations§
Trait Implementations§
source§impl Clone for DisplaySettings
impl Clone for DisplaySettings
source§fn clone(&self) -> DisplaySettings
fn clone(&self) -> DisplaySettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DisplaySettings
impl Debug for DisplaySettings
source§impl Decode<DisplaySettings> for DisplaySettings
impl Decode<DisplaySettings> for DisplaySettings
source§impl Encode<DisplaySettings> for &DisplaySettings
impl Encode<DisplaySettings> for &DisplaySettings
source§impl Encode<DisplaySettings> for DisplaySettings
impl Encode<DisplaySettings> for DisplaySettings
source§impl PartialEq<DisplaySettings> for DisplaySettings
impl PartialEq<DisplaySettings> for DisplaySettings
source§fn eq(&self, other: &DisplaySettings) -> bool
fn eq(&self, other: &DisplaySettings) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for DisplaySettings
impl TypeMarker for DisplaySettings
§type Owned = DisplaySettings
type Owned = DisplaySettings
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.source§impl ValueTypeMarker for DisplaySettings
impl ValueTypeMarker for DisplaySettings
§type Borrowed<'a> = &'a <DisplaySettings as TypeMarker>::Owned
type Borrowed<'a> = &'a <DisplaySettings as TypeMarker>::Owned
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more