Struct dcs2::rules::measurements::SystemState
source · pub struct SystemState {
pub measurements: LinearMap<SystemNodeId, NodeMeasurementsVec, CLUSTER_NODE_COUNT>,
}
Expand description
The system state is the global state of the system to be coordinated and based on wich rules are evaluated.
Fields§
§measurements: LinearMap<SystemNodeId, NodeMeasurementsVec, CLUSTER_NODE_COUNT>
Implementations§
source§impl SystemState
impl SystemState
pub fn raw( self ) -> LinearMap<SystemNodeId, NodeMeasurementsVec, CLUSTER_NODE_COUNT>
pub fn new(id: SystemNodeId, measurement: Measurement) -> Self
pub fn update(&mut self, id: SystemNodeId, measurement: Measurement)
pub fn last_measurements(&self) -> MeasurementsVec
pub fn extend(&mut self, rhs: Self)
Trait Implementations§
source§impl Clone for SystemState
impl Clone for SystemState
source§fn clone(&self) -> SystemState
fn clone(&self) -> SystemState
Returns a copy 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 SystemState
impl Debug for SystemState
source§impl Default for SystemState
impl Default for SystemState
source§fn default() -> SystemState
fn default() -> SystemState
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SystemState
impl<'de> Deserialize<'de> for SystemState
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 From<LinearMap<SystemNodeId, NodeMeasurementsVec, CLUSTER_NODE_COUNT>> for SystemState
impl From<LinearMap<SystemNodeId, NodeMeasurementsVec, CLUSTER_NODE_COUNT>> for SystemState
source§fn from(
measurements: LinearMap<SystemNodeId, NodeMeasurementsVec, CLUSTER_NODE_COUNT>
) -> Self
fn from( measurements: LinearMap<SystemNodeId, NodeMeasurementsVec, CLUSTER_NODE_COUNT> ) -> Self
Converts to this type from the input type.
source§impl PartialEq for SystemState
impl PartialEq for SystemState
source§fn eq(&self, other: &SystemState) -> bool
fn eq(&self, other: &SystemState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SystemState
impl Serialize for SystemState
impl Eq for SystemState
impl StructuralPartialEq for SystemState
Auto Trait Implementations§
impl RefUnwindSafe for SystemState
impl Send for SystemState
impl Sync for SystemState
impl Unpin for SystemState
impl UnwindSafe for SystemState
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