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].
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<D: ResourceDialect> Decode<DisplaySettings, D> for DisplaySettings
impl<D: ResourceDialect> Decode<DisplaySettings, D> for DisplaySettings
source§impl Default for DisplaySettings
impl Default for DisplaySettings
source§fn default() -> DisplaySettings
fn default() -> DisplaySettings
source§impl<D: ResourceDialect> Encode<DisplaySettings, D> for &DisplaySettings
impl<D: ResourceDialect> Encode<DisplaySettings, D> for &DisplaySettings
source§impl PartialEq for DisplaySettings
impl PartialEq 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
type Borrowed<'a> = &'a DisplaySettings
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for DisplaySettings
impl StructuralPartialEq for DisplaySettings
Auto Trait Implementations§
impl Freeze for DisplaySettings
impl RefUnwindSafe for DisplaySettings
impl Send for DisplaySettings
impl Sync for DisplaySettings
impl Unpin for DisplaySettings
impl UnwindSafe for DisplaySettings
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)