pub trait AppSpec: Default + AsyncSpawable {
type Cnf;
type Ctx;
type State;
fn init() -> Self;
fn context(&self) -> Self::Ctx;
fn name(&self) -> String;
fn settings(&self) -> Self::Cnf;
fn setup(&mut self) -> BoxResult<&Self>;
fn state(&self) -> &Locked<Self::State>;
fn slug(&self) -> String { ... }
}Expand description
Implements the base interface for creating compatible platform applications