Struct sttp::transport::Measurement
source · pub struct Measurement {
pub signal_id: Uuid,
pub value: f64,
pub timestamp: Ticks,
pub flags: StateFlags,
}Expand description
Represents a basic unit of measured data for transmission or reception in the STTP API.
Fields§
§signal_id: UuidDefines measurement’s globally unique identifier.
value: f64Defines instantaneous value of the measurement.
timestamp: TicksDefines the STTP uint64 timestamp, in ticks, that measurement was taken.
flags: StateFlagsDefines flags indicating the state of the measurement as reported by the device that took it.
Implementations§
source§impl Measurement
impl Measurement
Trait Implementations§
source§impl Clone for Measurement
impl Clone for Measurement
source§fn clone(&self) -> Measurement
fn clone(&self) -> Measurement
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 Measurement
impl Debug for Measurement
source§impl Default for Measurement
impl Default for Measurement
source§fn default() -> Measurement
fn default() -> Measurement
Returns the “default value” for a type. Read more
source§impl Display for Measurement
impl Display for Measurement
source§impl PartialEq<Measurement> for Measurement
impl PartialEq<Measurement> for Measurement
source§fn eq(&self, other: &Measurement) -> bool
fn eq(&self, other: &Measurement) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<Measurement> for Measurement
impl PartialOrd<Measurement> for Measurement
source§fn partial_cmp(&self, other: &Measurement) -> Option<Ordering>
fn partial_cmp(&self, other: &Measurement) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more