pub struct VocAlgorithmState {
pub state: [u8; 8],
}Expand description
Opaque backup of the VOC algorithm’s internal state.
Read it to persist learning across a power cycle or reset, and write it back before the next measurement to skip the initial learning phase.
Fields§
§state: [u8; 8]The 8 raw state bytes, treated as an opaque blob.
Trait Implementations§
Source§impl Clone for VocAlgorithmState
impl Clone for VocAlgorithmState
Source§fn clone(&self) -> VocAlgorithmState
fn clone(&self) -> VocAlgorithmState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VocAlgorithmState
impl Debug for VocAlgorithmState
Source§impl<'de> Deserialize<'de> for VocAlgorithmState
impl<'de> Deserialize<'de> for VocAlgorithmState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for VocAlgorithmState
Source§impl PartialEq for VocAlgorithmState
impl PartialEq for VocAlgorithmState
Source§fn eq(&self, other: &VocAlgorithmState) -> bool
fn eq(&self, other: &VocAlgorithmState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VocAlgorithmState
impl Serialize for VocAlgorithmState
impl StructuralPartialEq for VocAlgorithmState
Auto Trait Implementations§
impl Freeze for VocAlgorithmState
impl RefUnwindSafe for VocAlgorithmState
impl Send for VocAlgorithmState
impl Sync for VocAlgorithmState
impl Unpin for VocAlgorithmState
impl UnsafeUnpin for VocAlgorithmState
impl UnwindSafe for VocAlgorithmState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more