Struct rtlola_interpreter::rtlola_mir::TimeDrivenStream
source · pub struct TimeDrivenStream {
pub reference: StreamReference,
pub frequency: Quantity<dyn Dimension<J = Z0, I = Z0, M = Z0, Kind = dyn Kind + 'static, L = Z0, N = Z0, Th = Z0, T = NInt<UInt<UTerm, B1>>> + 'static, dyn Units<Ratio<i64>, luminous_intensity = candela, amount_of_substance = mole, time = second, thermodynamic_temperature = kelvin, electric_current = ampere, mass = kilogram, length = meter> + 'static, Ratio<i64>>,
}Expand description
Wrapper for output streams providing additional information specific to time-driven streams.
Fields§
§reference: StreamReferenceA reference to the stream that is specified.
frequency: Quantity<dyn Dimension<J = Z0, I = Z0, M = Z0, Kind = dyn Kind + 'static, L = Z0, N = Z0, Th = Z0, T = NInt<UInt<UTerm, B1>>> + 'static, dyn Units<Ratio<i64>, luminous_intensity = candela, amount_of_substance = mole, time = second, thermodynamic_temperature = kelvin, electric_current = ampere, mass = kilogram, length = meter> + 'static, Ratio<i64>>The evaluation frequency of the stream.
Implementations§
source§impl TimeDrivenStream
impl TimeDrivenStream
sourcepub fn period(
&self
) -> Quantity<dyn Dimension<J = Z0, I = Z0, M = Z0, Kind = dyn Kind + 'static, L = Z0, N = Z0, Th = Z0, T = PInt<UInt<UTerm, B1>>> + 'static, dyn Units<Ratio<i64>, luminous_intensity = candela, amount_of_substance = mole, time = second, thermodynamic_temperature = kelvin, electric_current = ampere, mass = kilogram, length = meter> + 'static, Ratio<i64>>
pub fn period(
&self
) -> Quantity<dyn Dimension<J = Z0, I = Z0, M = Z0, Kind = dyn Kind + 'static, L = Z0, N = Z0, Th = Z0, T = PInt<UInt<UTerm, B1>>> + 'static, dyn Units<Ratio<i64>, luminous_intensity = candela, amount_of_substance = mole, time = second, thermodynamic_temperature = kelvin, electric_current = ampere, mass = kilogram, length = meter> + 'static, Ratio<i64>>
Returns the evaluation period, i.e., the multiplicative inverse of TimeDrivenStream::frequency.
sourcepub fn frequency(
&self
) -> Quantity<dyn Dimension<J = Z0, I = Z0, M = Z0, Kind = dyn Kind + 'static, L = Z0, N = Z0, Th = Z0, T = NInt<UInt<UTerm, B1>>> + 'static, dyn Units<Ratio<i64>, luminous_intensity = candela, amount_of_substance = mole, time = second, thermodynamic_temperature = kelvin, electric_current = ampere, mass = kilogram, length = meter> + 'static, Ratio<i64>>
pub fn frequency(
&self
) -> Quantity<dyn Dimension<J = Z0, I = Z0, M = Z0, Kind = dyn Kind + 'static, L = Z0, N = Z0, Th = Z0, T = NInt<UInt<UTerm, B1>>> + 'static, dyn Units<Ratio<i64>, luminous_intensity = candela, amount_of_substance = mole, time = second, thermodynamic_temperature = kelvin, electric_current = ampere, mass = kilogram, length = meter> + 'static, Ratio<i64>>
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<TimeDrivenStream, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<TimeDrivenStream, <__D as Deserializer<'de>>::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
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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.