pub struct BatteryThresholds {
pub low_mv: u16,
pub critical_mv: u16,
}Expand description
Default state thresholds for a single-cell Li-ion tracker.
Fields§
§low_mv: u16§critical_mv: u16Trait Implementations§
Source§impl Clone for BatteryThresholds
impl Clone for BatteryThresholds
Source§fn clone(&self) -> BatteryThresholds
fn clone(&self) -> BatteryThresholds
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 BatteryThresholds
impl Debug for BatteryThresholds
Source§impl Default for BatteryThresholds
impl Default for BatteryThresholds
impl Copy for BatteryThresholds
Auto Trait Implementations§
impl Freeze for BatteryThresholds
impl RefUnwindSafe for BatteryThresholds
impl Send for BatteryThresholds
impl Sync for BatteryThresholds
impl Unpin for BatteryThresholds
impl UnwindSafe for BatteryThresholds
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)