pub struct DisplayInfo {
pub manual_brightness_value: f32,
pub auto_brightness_value: f32,
pub auto_brightness: bool,
pub screen_enabled: bool,
pub low_light_mode: LowLightMode,
pub theme: Option<Theme>,
}
Fields§
§manual_brightness_value: f32
The last brightness value that was manually set.
auto_brightness_value: f32
§auto_brightness: bool
§screen_enabled: bool
§low_light_mode: LowLightMode
§theme: Option<Theme>
Trait Implementations§
Source§impl Clone for DisplayInfo
impl Clone for DisplayInfo
Source§fn clone(&self) -> DisplayInfo
fn clone(&self) -> DisplayInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DisplayInfo
impl Debug for DisplayInfo
Source§impl<'de> Deserialize<'de> for DisplayInfo
impl<'de> Deserialize<'de> for DisplayInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl DeviceStorageCompatible for DisplayInfo
impl DeviceStorageCompatible for DisplayInfo
Source§impl From<DisplayInfo> for SettingInfo
impl From<DisplayInfo> for SettingInfo
Source§fn from(info: DisplayInfo) -> SettingInfo
fn from(info: DisplayInfo) -> SettingInfo
Converts to this type from the input type.
Source§impl From<DisplayInfo> for StorageInfo
impl From<DisplayInfo> for StorageInfo
Source§fn from(info: DisplayInfo) -> StorageInfo
fn from(info: DisplayInfo) -> StorageInfo
Converts to this type from the input type.
Source§impl From<DisplayInfoV5> for DisplayInfo
impl From<DisplayInfoV5> for DisplayInfo
Source§fn from(v5: DisplayInfoV5) -> Self
fn from(v5: DisplayInfoV5) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DisplayInfo
impl PartialEq for DisplayInfo
Source§impl Serialize for DisplayInfo
impl Serialize for DisplayInfo
Source§impl TryFrom<SettingInfo> for DisplayInfo
impl TryFrom<SettingInfo> for DisplayInfo
impl Copy for DisplayInfo
impl StructuralPartialEq for DisplayInfo
Auto Trait Implementations§
impl Freeze for DisplayInfo
impl RefUnwindSafe for DisplayInfo
impl Send for DisplayInfo
impl Sync for DisplayInfo
impl Unpin for DisplayInfo
impl UnwindSafe for DisplayInfo
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> DeviceStorageConvertible for Twhere
T: DeviceStorageCompatible,
impl<T> DeviceStorageConvertible for Twhere
T: DeviceStorageCompatible,
§fn get_storable(&self) -> Cow<'_, <T as DeviceStorageConvertible>::Storable>
fn get_storable(&self) -> Cow<'_, <T as DeviceStorageConvertible>::Storable>
Convert
self
into its storable version.