pub struct DisplayInfoV1 {
pub manual_brightness_value: f32,
pub auto_brightness: bool,
pub low_light_mode: LowLightMode,
}
Expand description
The following struct should never be modified. It represents an old version of the display settings.
Fields§
§manual_brightness_value: f32
The last brightness value that was manually set.
auto_brightness: bool
§low_light_mode: LowLightMode
Trait Implementations§
Source§impl Clone for DisplayInfoV1
impl Clone for DisplayInfoV1
Source§fn clone(&self) -> DisplayInfoV1
fn clone(&self) -> DisplayInfoV1
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 DisplayInfoV1
impl Debug for DisplayInfoV1
Source§impl Default for DisplayInfoV1
impl Default for DisplayInfoV1
Source§impl<'de> Deserialize<'de> for DisplayInfoV1
impl<'de> Deserialize<'de> for DisplayInfoV1
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 DisplayInfoV1
impl DeviceStorageCompatible for DisplayInfoV1
Source§impl From<DisplayInfoV1> for DisplayInfoV2
impl From<DisplayInfoV1> for DisplayInfoV2
Source§fn from(v1: DisplayInfoV1) -> Self
fn from(v1: DisplayInfoV1) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DisplayInfoV1
impl PartialEq for DisplayInfoV1
Source§impl Serialize for DisplayInfoV1
impl Serialize for DisplayInfoV1
impl Copy for DisplayInfoV1
impl StructuralPartialEq for DisplayInfoV1
Auto Trait Implementations§
impl Freeze for DisplayInfoV1
impl RefUnwindSafe for DisplayInfoV1
impl Send for DisplayInfoV1
impl Sync for DisplayInfoV1
impl Unpin for DisplayInfoV1
impl UnwindSafe for DisplayInfoV1
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.