pub struct AppState {
pub store: AidStore,
pub admin_pubkey: Option<[u8; 32]>,
/* private fields */
}Expand description
Shared application state.
AidStore uses an r2d2 connection pool internally, so no Mutex is needed for it.
Fields§
§store: AidStore§admin_pubkey: Option<[u8; 32]>Ed25519 public key for admin DAT verification. None = open (dev mode).
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