Struct sttp::transport::BasicMeasurement
source · pub struct BasicMeasurement { /* private fields */ }
Expand description
Represents a basic Measurement
for transmission or reception in the STTP API.
Trait Implementations§
source§impl Clone for BasicMeasurement
impl Clone for BasicMeasurement
source§fn clone(&self) -> BasicMeasurement
fn clone(&self) -> BasicMeasurement
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 BasicMeasurement
impl Debug for BasicMeasurement
source§impl Default for BasicMeasurement
impl Default for BasicMeasurement
source§fn default() -> BasicMeasurement
fn default() -> BasicMeasurement
Returns the “default value” for a type. Read more
source§impl Display for BasicMeasurement
impl Display for BasicMeasurement
source§impl Measurement for BasicMeasurement
impl Measurement for BasicMeasurement
source§fn set_signal_id(&mut self, signal_id: Uuid)
fn set_signal_id(&mut self, signal_id: Uuid)
Sets measurement’s globally unique identifier.
source§fn timestamp(&self) -> Ticks
fn timestamp(&self) -> Ticks
Gets the STTP uint64 timestamp, in ticks, that measurement was taken.
source§fn set_timestamp(&mut self, timestamp: Ticks)
fn set_timestamp(&mut self, timestamp: Ticks)
Sets the STTP uint64 timestamp, in ticks, that measurement was taken.
source§fn flags(&self) -> StateFlags
fn flags(&self) -> StateFlags
Gets flags indicating the state of the measurement as reported by the device that took it.
source§fn set_flags(&mut self, flags: StateFlags)
fn set_flags(&mut self, flags: StateFlags)
Sets flags indicating the state of the measurement as reported by the device that took it.
source§fn timestamp_value(&self) -> u64
fn timestamp_value(&self) -> u64
Gets the integer-based time from a
Measurement
ticks-based timestamp, i.e.,
the 62-bit time value excluding any leap-second flags.source§impl PartialEq<BasicMeasurement> for BasicMeasurement
impl PartialEq<BasicMeasurement> for BasicMeasurement
source§fn eq(&self, other: &BasicMeasurement) -> bool
fn eq(&self, other: &BasicMeasurement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<BasicMeasurement> for BasicMeasurement
impl PartialOrd<BasicMeasurement> for BasicMeasurement
source§fn partial_cmp(&self, other: &BasicMeasurement) -> Option<Ordering>
fn partial_cmp(&self, other: &BasicMeasurement) -> 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