pub struct Fields(/* private fields */);Expand description
Requested/supported fields. Bit zero is the existing battery snapshot.
Implementations§
Source§impl Fields
impl Fields
pub const NONE: Self
pub const SNAPSHOT: Self
pub const DIAGNOSTICS: Self
pub const ALL: Self
Sourcepub const GAUGE_CONFIG: Self
pub const GAUGE_CONFIG: Self
Deliberately excluded from ALL/DIAGNOSTICS: requires explicit acquisition.
Sourcepub const GAUGE_TELEMETRY: Self
pub const GAUGE_TELEMETRY: Self
Live chip-specific readings, acquired only when explicitly requested.
pub const fn for_key(key: u32) -> Self
pub const fn contains(self, key: u32) -> bool
pub const fn union(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
pub const fn is_empty(self) -> bool
Trait Implementations§
impl Copy for Fields
impl Eq for Fields
impl StructuralPartialEq for Fields
Auto Trait Implementations§
impl Freeze for Fields
impl RefUnwindSafe for Fields
impl Send for Fields
impl Sync for Fields
impl Unpin for Fields
impl UnwindSafe for Fields
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)