pub trait Runtime<RuntimeResult, RuntimeError>{
type Component;
// Required methods
fn on_start(&mut self);
fn on_stop(&mut self);
fn run(self) -> Result<RuntimeResult, RuntimeError>;
}
Expand description
A runtime is an important but simple type in lambda that is responsible for executing the application. The event loop for the application is started within the runtime and should live for the duration of the application.