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: f32The last brightness value that was manually set.
auto_brightness: bool§low_light_mode: LowLightModeTrait Implementations§
Source§impl Clone for DisplayInfoV1
impl Clone for DisplayInfoV1
Source§fn clone(&self) -> DisplayInfoV1
fn clone(&self) -> DisplayInfoV1
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 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 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§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