Struct rtlola_frontend::mir::TimeDrivenStream[][src]

pub struct TimeDrivenStream {
    pub reference: StreamReference,
    pub frequency: UOM_Frequency,
}

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

impl TimeDrivenStream[src]

pub fn period(&self) -> UOM_Time[src]

Returns the evaluation period, i.e., the multiplicative inverse of TimeDrivenStream::frequency.

pub fn frequency(&self) -> UOM_Frequency[src]

Returns the evaluation frequency.

pub fn period_in_duration(&self) -> Duration[src]

Returns the evaluation period, i.e., the multiplicative inverse of TimeDrivenStream::frequency, as Duration.

Trait Implementations

impl Clone for TimeDrivenStream[src]

impl Copy for TimeDrivenStream[src]

impl Debug for TimeDrivenStream[src]

impl Eq for TimeDrivenStream[src]

impl PartialEq<TimeDrivenStream> for TimeDrivenStream[src]

impl StructuralEq for TimeDrivenStream[src]

impl StructuralPartialEq for TimeDrivenStream[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.