pub struct PhysicalDisplayState {
pub brightness: Option<Brightness>,
}Expand description
The current physical monitor state.
Fields§
§brightness: Option<Brightness>Current brightness percentage when supported.
Trait Implementations§
Source§impl Clone for PhysicalDisplayState
impl Clone for PhysicalDisplayState
Source§fn clone(&self) -> PhysicalDisplayState
fn clone(&self) -> PhysicalDisplayState
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 PhysicalDisplayState
impl Debug for PhysicalDisplayState
Source§impl Default for PhysicalDisplayState
impl Default for PhysicalDisplayState
Source§fn default() -> PhysicalDisplayState
fn default() -> PhysicalDisplayState
Returns the “default value” for a type. Read more
Source§impl Ord for PhysicalDisplayState
impl Ord for PhysicalDisplayState
Source§fn cmp(&self, other: &PhysicalDisplayState) -> Ordering
fn cmp(&self, other: &PhysicalDisplayState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PhysicalDisplayState
impl PartialEq for PhysicalDisplayState
Source§impl PartialOrd for PhysicalDisplayState
impl PartialOrd for PhysicalDisplayState
impl Eq for PhysicalDisplayState
impl StructuralPartialEq for PhysicalDisplayState
Auto Trait Implementations§
impl Freeze for PhysicalDisplayState
impl RefUnwindSafe for PhysicalDisplayState
impl Send for PhysicalDisplayState
impl Sync for PhysicalDisplayState
impl Unpin for PhysicalDisplayState
impl UnsafeUnpin for PhysicalDisplayState
impl UnwindSafe for PhysicalDisplayState
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