Struct batteryd::battery::Battery [−][src]
pub struct Battery { /* fields omitted */ }
The struct providing an interface to the system's battery.
Methods
impl Battery
[src]
impl Battery
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn with_index(index: u32) -> Self
[src]
pub fn with_index(index: u32) -> Self
pub fn is_charging(&self) -> bool
[src]
pub fn is_charging(&self) -> bool
pub fn is_full(&self) -> bool
[src]
pub fn is_full(&self) -> bool
pub fn status(&self) -> Status
[src]
pub fn status(&self) -> Status
pub fn is_present(&self) -> bool
[src]
pub fn is_present(&self) -> bool
pub fn capacity(&self) -> Result<u8, ()>
[src]
pub fn capacity(&self) -> Result<u8, ()>