[−][src]Struct rtlola_interpreter::Monitor
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]
&mut self,
ev: E,
ts: Duration
) -> Update
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]
&mut self,
ts: Duration
) -> Vec<(Duration, Vec<(OutputReference, Value)>)>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,