pub struct CompactMeasurement { /* private fields */ }
Expand description

Represents a compact Measurement for transmission or reception in the STTP API.

Implementations§

Creates a new CompactMeasurement.

Gets flag that determines if time is serialized into measurement binary image.

Gets the length of the CompactMeasurement.

Gets offset compressed millisecond-resolution 2-byte timestamp.

Gets offset compressed tick-resolution 4-byte timestamp.

Gets byte level compact state flags with encoded time index and base time offset bits.

Sets byte level compact state flags with encoded time index and base time offset bits.

Gets the 4-byte run-time signal index for this measurement.

Sets the 4-byte run-time signal index for this measurement.

parses a CompactMeasurement from the specified byte buffer.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Gets measurement’s globally unique identifier.
Sets measurement’s globally unique identifier.
Gets instantaneous value of the measurement.
Sets instantaneous value of the measurement.
Gets the STTP uint64 timestamp, in ticks, that measurement was taken.
Sets the STTP uint64 timestamp, in ticks, that measurement was taken.
Gets flags indicating the state of the measurement as reported by the device that took it.
Sets flags indicating the state of the measurement as reported by the device that took it.
Gets the integer-based time from a Measurement ticks-based timestamp, i.e., the 62-bit time value excluding any leap-second flags.
Gets Measurement ticks-based timestamp as a standard Rust DateTime value.
Formats the Measurement using a default formatter.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.