pub struct StateVector {
pub velocity: Velocity,
pub deviation: Deviation,
pub session: Session,
pub loss_reaction: LossReaction,
pub re_entry: ReEntry,
pub sleep_proxy: SleepProxy,
pub on_break: bool,
}Expand description
The composite state vector — all the ingredients the classifier
folds into a crate::Label.
Fields§
§velocity: Velocity§deviation: Deviation§session: Session§loss_reaction: LossReaction§re_entry: ReEntry§sleep_proxy: SleepProxy§on_break: boolTrue when the most recent BreakStarted has not yet been
followed by BreakEnded. While on break, velocity counters
freeze.
Trait Implementations§
Source§impl Clone for StateVector
impl Clone for StateVector
Source§fn clone(&self) -> StateVector
fn clone(&self) -> StateVector
Returns a duplicate of the value. Read more
1.0.0 · 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 StateVector
impl Debug for StateVector
Source§impl Default for StateVector
impl Default for StateVector
Source§fn default() -> StateVector
fn default() -> StateVector
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StateVector
impl<'de> Deserialize<'de> for StateVector
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
Source§impl PartialEq for StateVector
impl PartialEq for StateVector
Source§impl Serialize for StateVector
impl Serialize for StateVector
impl StructuralPartialEq for StateVector
Auto Trait Implementations§
impl Freeze for StateVector
impl RefUnwindSafe for StateVector
impl Send for StateVector
impl Sync for StateVector
impl Unpin for StateVector
impl UnsafeUnpin for StateVector
impl UnwindSafe for StateVector
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