pub struct AppState {
pub engine: SharedEngine,
pub db_path: PathBuf,
pub audit_log_path: Option<PathBuf>,
pub events: Arc<EventHub>,
/* private fields */
}Fields§
§engine: SharedEngine§db_path: PathBuf§audit_log_path: Option<PathBuf>Optional audit log path. When Some, /api/v1/audit reads events
from this JSONL file; otherwise the endpoint returns an empty
list with a configured: false flag.
events: Arc<EventHub>Live-events hub backing /api/v1/events (SSE). Spawns its poller
lazily on the first subscriber — see events::EventHub.
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