[][src]Struct rtlola_interpreter::Monitor

pub struct Monitor { /* fields omitted */ }

The Monitor accepts new events and computes streams.

The Monitor is the central object exposed by the API.
It can compute event-based streams based on new events through accept_event.
It can also simply advance periodic streams up to a given timestamp through accept_time.

Implementations

impl Monitor[src]

pub fn accept_event<E: Into<Vec<Value>>>(
    &mut self,
    ev: E,
    ts: Duration
) -> Update
[src]

Computes all periodic streams up through the new timestamp and then handles the input event.

The new event is therefore not seen by periodic streams up through the new timestamp.

pub fn accept_time(
    &mut self,
    ts: Duration
) -> Vec<(Duration, Vec<(OutputReference, Value)>)>
[src]

Computes all periodic streams up through the new timestamp.

pub fn name_for_input(&self, id: InputReference) -> &str[src]

Get the name of an input stream based on its InputReference

The reference is valid for the lifetime of the monitor.

pub fn name_for_output(&self, id: OutputReference) -> &str[src]

Get the name of an output stream based on its OutputReference

The reference is valid for the lifetime of the monitor.

Auto Trait Implementations

impl !RefUnwindSafe for Monitor

impl !Send for Monitor

impl !Sync for Monitor

impl !Unpin for Monitor

impl !UnwindSafe for Monitor

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<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, 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.