pub struct AppState {
pub engine: Arc<dyn StoreEngine>,
pub ready: Arc<Atomic<bool>>,
pub stream: Arc<StreamHub>,
}Fields§
§engine: Arc<dyn StoreEngine>§ready: Arc<Atomic<bool>>Gates ingest (writes) only. Query and compact remain available during drains so that in-flight reads can complete while the worker sheds write traffic.
stream: Arc<StreamHub>Shared fan-out hub for store.stream.v1.Subscribe. IngestConnect::put
calls publish on successful commit so subscribers receive exactly
the rows that landed in the engine.
Implementations§
Trait 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 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