state_unit

Function run_unit

Source
pub async fn run_unit<T: StateUnit>(unit: T, recv: Receiver<StateRequest>) -> T
Expand description

Runs a simple unit that only needs to respond to state requests.