pub struct AppState {
pub journal: Arc<dyn Journal>,
pub blob_store: Arc<BlobStore>,
pub data_dir: PathBuf,
}Expand description
Shared application state threaded through all axum handlers.
Wrapped in Arc so it can be cheaply cloned into every request.
Fields§
§journal: Arc<dyn Journal>Event journal (session + event persistence).
blob_store: Arc<BlobStore>Content-addressed blob store.
data_dir: PathBufRoot path for filesystem data.
Auto Trait Implementations§
impl Freeze for AppState
impl !RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl UnsafeUnpin 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