Struct ev3dev_lang_rust::power_supply::PowerSupply[][src]

pub struct PowerSupply { /* fields omitted */ }

Methods

impl PowerSupply
[src]

Returns the battery current in microamps

Always returns System.

Returns Unknown or Li-ion depending on if the rechargeable battery is present.

Always returns Battery.

Returns the nominal “full” battery voltage. The value returned depends on technology.

Returns the nominal “empty” battery voltage. The value returned depends on technology.

Returns the battery voltage in microvolts.

Auto Trait Implementations

impl Send for PowerSupply

impl Sync for PowerSupply