//! Getting the device's battery's state, if any
use Knowledge;
use Duration;
/// One of: Wired, FullyCharged, Charging and Discharging.
/// The battery's state and useful associated information - Get it for the
/// user's device with the associated `query()` function.
///
/// It's all packed into a single struct because on most platforms, it's
/// cheaper to query everything at once rather than "coming back" for
/// individual pieces of information.