[−][src]Struct i3status_rs::blocks::backlight::BacklightConfig
Configuration for the Backlight
block.
Fields
device: Option<String>
The backlight device in /sys/class/backlight/
to read brightness from.
step_width: u64
The steps brightness is in/decreased for the selected screen (When greater than 50 it gets limited to 50)
root_scaling: f64
Scaling exponent reciprocal (ie. root). Some devices expose raw values that are best handled with nonlinear scaling. The human perception of lightness is close to the cube root of relative luminance. Settings between 2.4 and 3.0 are worth trying. More information: https://en.wikipedia.org/wiki/Lightness
For devices with few discrete steps this should be 1.0 (linear).
invert_icons: bool
Trait Implementations
impl Clone for BacklightConfig
[src]
fn clone(&self) -> BacklightConfig
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BacklightConfig
[src]
impl Default for BacklightConfig
[src]
impl<'de> Deserialize<'de> for BacklightConfig where
BacklightConfig: Default,
[src]
BacklightConfig: Default,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for BacklightConfig
[src]
impl Send for BacklightConfig
[src]
impl Sync for BacklightConfig
[src]
impl Unpin for BacklightConfig
[src]
impl UnwindSafe for BacklightConfig
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,