Trait rtlola_input_plugins::EventSource
source · pub trait EventSource<InputTime: TimeRepresentation> {
type Rec: Record;
type Error: Error;
fn init_data(
&self
) -> Result<<Self::Rec as Record>::CreationData, Self::Error>;
fn next_event(
&mut self
) -> Result<Option<(Self::Rec, InputTime::InnerTime)>, Self::Error>;
}
Expand description
The main trait that has to be implemented by an input plugin