pub struct AppState {
pub engine: Arc<dyn StoreEngine>,
pub ready: Arc<AtomicBool>,
}Fields§
§engine: Arc<dyn StoreEngine>§ready: Arc<AtomicBool>Gates ingest (writes) only. Query and compact remain available during drains so that in-flight reads can complete while the worker sheds write traffic.
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