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: f32The 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 duplicate 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 From<DisplayInfo> for DisplaySettings
impl From<DisplayInfo> for DisplaySettings
Source§fn from(info: DisplayInfo) -> Self
fn from(info: DisplayInfo) -> Self
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 Merge<SetDisplayInfo> for DisplayInfo
impl Merge<SetDisplayInfo> for DisplayInfo
Source§fn merge(&self, other: SetDisplayInfo) -> Self
fn merge(&self, other: SetDisplayInfo) -> Self
Returns a copy of the original struct where the values of all fields set in
other
replace the matching fields in the copy of self.Source§impl PartialEq for DisplayInfo
impl PartialEq for DisplayInfo
Source§impl Serialize for DisplayInfo
impl Serialize 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§impl<T> DeviceStorageConvertible for Twhere
T: DeviceStorageCompatible,
impl<T> DeviceStorageConvertible for Twhere
T: DeviceStorageCompatible,
Source§fn get_storable(&self) -> Cow<'_, <T as DeviceStorageConvertible>::Storable>
fn get_storable(&self) -> Cow<'_, <T as DeviceStorageConvertible>::Storable>
Convert
self into its storable version.Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]§impl<T> IntoAny for T
impl<T> IntoAny for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more