pub struct LevelSample {
pub battery_mv: u16,
pub state: BatteryState,
pub load_recent: bool,
pub now_ms: u32,
}Expand description
One estimator input: the monitor’s measurement plus its context.
Fields§
§battery_mv: u16Measured terminal voltage, millivolts.
state: BatteryStateThe classification for the same instant (see classify).
load_recent: boolA significant load (e.g. a radio transmission) ran within
SAG_WINDOW_MS of this reading, so the voltage may be sagged
rather than resting.
now_ms: u32Monotonic milliseconds; any epoch, wrapping arithmetic.
Trait Implementations§
Source§impl Clone for LevelSample
impl Clone for LevelSample
Source§fn clone(&self) -> LevelSample
fn clone(&self) -> LevelSample
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LevelSample
impl Debug for LevelSample
impl Copy for LevelSample
Auto Trait Implementations§
impl Freeze for LevelSample
impl RefUnwindSafe for LevelSample
impl Send for LevelSample
impl Sync for LevelSample
impl Unpin for LevelSample
impl UnwindSafe for LevelSample
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)