1 2 3 4 5 6 7 8 9
use super::error::{ErrorContainer, WebError}; pub trait AppState: 'static { type Error: ErrorContainer; } impl AppState for () { type Error = WebError; }