1 2 3 4 5 6 7 8
use crate::data::Store; use crate::routing::Router; use std::sync::Arc; pub trait Context { fn router(&self) -> Arc<Router>; fn store(&self) -> Arc<Store>; }