pub struct RwmStatus { /* private fields */ }
Expand description
RwmStatus
This struct collects device dependent paths and user settings. It also provides convenience methods to aggregate readouts.
Implementations
sourceimpl RwmStatus
impl RwmStatus
sourcepub fn new(tzs: &[(char, &str)]) -> RwmStatus
pub fn new(tzs: &[(char, &str)]) -> RwmStatus
Build a new RwmStatus object. This function collects all the monitor and battery paths for later use.
sourcepub fn get_temperatures(&self) -> Option<String>
pub fn get_temperatures(&self) -> Option<String>
Return temperature reads from all monitors.
sourcepub fn get_load_avgs(&self) -> String
pub fn get_load_avgs(&self) -> String
Return the three load average values.
sourcepub fn get_batteries(&self) -> Option<String>
pub fn get_batteries(&self) -> Option<String>
Return battery status for all batteries.
Auto Trait Implementations
impl RefUnwindSafe for RwmStatus
impl Send for RwmStatus
impl Sync for RwmStatus
impl Unpin for RwmStatus
impl UnwindSafe for RwmStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more