Trait rtlola_interpreter::monitor::Record
source · pub trait Record: Send {
type CreationData: Clone + Send;
type Error: Error + Send + 'static;
fn func_for_input(
name: &str,
data: Self::CreationData
) -> Result<ValueProjection<Self, Self::Error>, Self::Error>;
}
Expand description
This trait provides functionality to parse a record into an event. It is only used in combination with the RecordInput.
Required Associated Types§
sourcetype CreationData: Clone + Send
type CreationData: Clone + Send
Arbitrary type of the data provided at creation time to help initializing the input method.
Required Methods§
sourcefn func_for_input(
name: &str,
data: Self::CreationData
) -> Result<ValueProjection<Self, Self::Error>, Self::Error>
fn func_for_input(
name: &str,
data: Self::CreationData
) -> Result<ValueProjection<Self, Self::Error>, Self::Error>
Given the name of an input this function returns a function that given a record returns the value for that input.