Trait lambda::runtime::Runtime

source ·
pub trait Runtime<RuntimeResult, RuntimeError>where
    RuntimeResult: Sized + Debug,
    RuntimeError: Sized + Debug,
{ type Component; 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§

Implementors§