Struct pancake_server::engine_serial::route_handlers::AppState
source · pub struct AppState {
db: Arc<RwLock<DB>>,
wasm_engine: WasmEngine,
}Fields§
§db: Arc<RwLock<DB>>§wasm_engine: WasmEngineImplementations§
source§impl AppState
impl AppState
pub fn db(&self) -> &Arc<RwLock<DB>>
pub fn set_db(&mut self, value: Arc<RwLock<DB>>) -> &mut Self
pub fn wasm_engine(&self) -> &WasmEngine
pub fn set_wasm_engine(&mut self, value: WasmEngine) -> &mut Self
Auto Trait Implementations§
impl !RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin 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