pub fn on_battery(&self) -> Result<bool, UPowerError> {
        let result = self.connection_path("/org/freedesktop/UPower")
            .get::<bool>("org.freedesktop.UPower", "OnBattery")?;

        Ok(result)
    }
/// Indicates whether the system is running on battery power. This property is provided for convenience.
Indicates whether the system is running on battery power. This property is provided for convenience.
Indicates whether the system is running on battery power . This property is provided for convenience .
pub fn on_battery(&self) -> Result<bool, UPowerError> {
        let result = self.connection_path("/org/freedesktop/UPower")
            .get::<bool>("org.freedesktop.UPower", "OnBattery")?;
        Ok(result)
    }
pub fn on_battery ( & self ) -> Result < bool , UPowerError > { let result = self . connection_path ( " " ) . get :: < bool > ( " " , " " ) ? ; Ok ( result ) }
Indicates whether the system is running on battery power.
Indicates whether the system is running on battery power .
&self