Skip to main content

quarlus_core/
state.rs

1/// Trait alias for types that can serve as Quarlus application state.
2///
3/// The user's state type is used directly as the Axum router state.
4/// It must be `Clone + Send + Sync + 'static`.
5pub trait QuarlusState: Clone + Send + Sync + 'static {}
6
7impl<T: Clone + Send + Sync + 'static> QuarlusState for T {}