pub struct AppState {
pub db: Pool<SqliteConnectionManager>,
pub config: Arc<Config>,
pub http: Client,
pub tus: Arc<DashMap<String, TusUpload>>,
}Expand description
Shared state that every axum handler can access.
Fields§
§db: Pool<SqliteConnectionManager>§config: Arc<Config>§http: Client§tus: Arc<DashMap<String, TusUpload>>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