pub struct AppState {
pub db: Database,
pub merkle: Mutex<MerkleState>,
pub page_size: usize,
}Expand description
Shared server state. Cheaply cloneable (everything is behind an
Arc / Mutex).
Fields§
§db: Database§merkle: Mutex<MerkleState>§page_size: usizeAuto Trait Implementations§
impl !Freeze for AppState
impl !RefUnwindSafe for AppState
impl !UnwindSafe 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