Struct rtlola_interpreter::time::OffsetNanos
source · pub struct OffsetNanos { /* private fields */ }Expand description
Time represented as the unsigned number in nanoseconds as the offset to the preceding event.
Trait Implementations§
source§impl Clone for OffsetNanos
impl Clone for OffsetNanos
source§fn clone(&self) -> OffsetNanos
fn clone(&self) -> OffsetNanos
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 OffsetNanos
impl Debug for OffsetNanos
source§impl Default for OffsetNanos
impl Default for OffsetNanos
source§fn default() -> OffsetNanos
fn default() -> OffsetNanos
Returns the “default value” for a type. Read more
source§impl TimeMode for OffsetNanos
impl TimeMode for OffsetNanos
source§fn requires_timestamp() -> bool
fn requires_timestamp() -> bool
Returns whether the time TimeRepresentation require an explicit timestamp
source§impl TimeRepresentation for OffsetNanos
impl TimeRepresentation for OffsetNanos
source§fn convert_from(&mut self, raw: Self::InnerTime) -> Time
fn convert_from(&mut self, raw: Self::InnerTime) -> Time
Convert from the internal time representation to the monitor time.
source§fn convert_into(&self, ts: Time) -> Self::InnerTime
fn convert_into(&self, ts: Time) -> Self::InnerTime
Convert from monitor time to the internal representation.
source§fn to_string(&self, ts: Self::InnerTime) -> String
fn to_string(&self, ts: Self::InnerTime) -> String
Convert the internal representation into a string.
source§fn parse(s: &str) -> Result<u64, String>
fn parse(s: &str) -> Result<u64, String>
Parse the internal representation from a string and convert it into monitor time.
source§fn default_start_time() -> Option<SystemTime>
fn default_start_time() -> Option<SystemTime>
Returns a default start time if applicable for the time representation.