Trait Runtime

Source
pub trait Runtime<RuntimeResult, RuntimeError>
where RuntimeResult: Sized + Debug, RuntimeError: Sized + Debug,
{ 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.

Required Associated Types§

Required Methods§

Source

fn on_start(&mut self)

Source

fn on_stop(&mut self)

Source

fn run(self) -> Result<RuntimeResult, RuntimeError>

Implementors§