pub struct AppState {
pub router: Arc<Router>,
pub registry: Arc<ProviderRegistry>,
pub event_registry: Arc<EventRegistry>,
pub start_time: SystemTime,
}
Expand description
Application state shared across handlers
Fields§
§router: Arc<Router>
§registry: Arc<ProviderRegistry>
§event_registry: Arc<EventRegistry>
§start_time: SystemTime
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppState
impl !RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl !UnwindSafe for AppState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more