pub struct AppState {
pub fs: Arc<dyn FileSystem>,
pub auth: Arc<dyn AuthProvider>,
pub admin: Arc<dyn WorkspaceAdmin>,
pub health_workspace: WorkspaceId,
}Expand description
Shared, cloneable application state handed to every route.
Fields§
§fs: Arc<dyn FileSystem>The backend-agnostic filesystem every data route is driven through.
auth: Arc<dyn AuthProvider>Resolves inbound credentials to a workspace and capability set.
admin: Arc<dyn WorkspaceAdmin>Workspace lifecycle operations (create/delete), backend-specific.
health_workspace: WorkspaceIdThe workspace /readyz probes with a cheap exists(root) call.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AppState
impl !UnwindSafe for AppState
impl Freeze for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl UnsafeUnpin 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