Struct pancake_server::engine_serial::wasm::DbProvider
source · struct DbProvider {
db: &'static mut DB,
}Fields§
§db: &'static mut DBNot actually static. Bound to the lifetime of the WasmEngine singleton.
Making it static obviates making WasmEngine typed with a lifetime.
Is there a better way?
Trait Implementations§
source§impl Db for DbProvider
impl Db for DbProvider
fn get_pk_one(&mut self, pk: Pk) -> Result<Result<Option<Pkpv>, String>>
fn get_pk_range( &mut self, pk_lo: Option<Pk>, pk_hi: Option<Pk> ) -> Result<Result<Vec<Pkpv>, String>>
fn get_sv_range( &mut self, sv_spec: SvSpec, sv_lo: Option<Sv>, sv_hi: Option<Sv> ) -> Result<Result<Vec<Pkpv>, String>>
fn put(&mut self, pk: Pk, opt_pv: Option<Pv>) -> Result<Result<(), String>>
Auto Trait Implementations§
impl RefUnwindSafe for DbProvider
impl Send for DbProvider
impl Sync for DbProvider
impl Unpin for DbProvider
impl !UnwindSafe for DbProvider
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