Struct rtlola_frontend::mir::TimeDrivenStream
source · pub struct TimeDrivenStream {
pub reference: StreamReference,
pub frequency: UOM_Frequency,
}
Expand description
Wrapper for output streams providing additional information specific to time-driven streams.
Fields§
§reference: StreamReference
A reference to the stream that is specified.
frequency: UOM_Frequency
The evaluation frequency of the stream.
Implementations§
source§impl TimeDrivenStream
impl TimeDrivenStream
sourcepub fn period(&self) -> UOM_Time
pub fn period(&self) -> UOM_Time
Returns the evaluation period, i.e., the multiplicative inverse of TimeDrivenStream::frequency.
sourcepub fn frequency(&self) -> UOM_Frequency
pub fn frequency(&self) -> UOM_Frequency
Returns the evaluation frequency.
sourcepub fn period_in_duration(&self) -> Duration
pub fn period_in_duration(&self) -> Duration
Returns the evaluation period, i.e., the multiplicative inverse of TimeDrivenStream::frequency, as Duration.
Trait Implementations§
source§impl Clone for TimeDrivenStream
impl Clone for TimeDrivenStream
source§fn clone(&self) -> TimeDrivenStream
fn clone(&self) -> TimeDrivenStream
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 TimeDrivenStream
impl Debug for TimeDrivenStream
source§impl<'de> Deserialize<'de> for TimeDrivenStream
impl<'de> Deserialize<'de> for TimeDrivenStream
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<TimeDrivenStream> for TimeDrivenStream
impl PartialEq<TimeDrivenStream> for TimeDrivenStream
source§fn eq(&self, other: &TimeDrivenStream) -> bool
fn eq(&self, other: &TimeDrivenStream) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TimeDrivenStream
impl Serialize for TimeDrivenStream
impl Copy for TimeDrivenStream
impl Eq for TimeDrivenStream
impl StructuralEq for TimeDrivenStream
impl StructuralPartialEq for TimeDrivenStream
Auto Trait Implementations§
impl RefUnwindSafe for TimeDrivenStream
impl Send for TimeDrivenStream
impl Sync for TimeDrivenStream
impl Unpin for TimeDrivenStream
impl UnwindSafe for TimeDrivenStream
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.