Struct rtlola_interpreter::time::RealTime
source · pub struct RealTime { /* private fields */ }Expand description
Time is set to be real-time. I.e. the input time is ignored and the current timestamp in rfc3339 format is taken instead.
Trait Implementations§
source§impl TimeMode for RealTime
impl TimeMode for RealTime
source§fn requires_timestamp() -> bool
fn requires_timestamp() -> bool
Returns whether the time TimeRepresentation require an explicit timestamp
source§impl TimeRepresentation for RealTime
impl TimeRepresentation for RealTime
source§fn convert_from(&mut self, _inner: Self::InnerTime) -> Time
fn convert_from(&mut self, _inner: 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<(), String>
fn parse(_s: &str) -> Result<(), 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.