pub struct Db<C: CanisterKind> { /* private fields */ }Expand description
Db A handle to the set of stores registered for a specific canister domain.
Implementations§
Source§impl<C: CanisterKind> Db<C>
impl<C: CanisterKind> Db<C>
pub const fn new(store: &'static LocalKey<StoreRegistry>) -> Self
pub const fn new_with_hooks( store: &'static LocalKey<StoreRegistry>, entity_runtime_hooks: &'static [EntityRuntimeHooks<C>], ) -> Self
pub fn storage_report( &self, name_to_path: &[(&'static str, &'static str)], ) -> Result<StorageReport, InternalError>
Trait Implementations§
Source§impl<C: CanisterKind> Clone for Db<C>
impl<C: CanisterKind> Clone for Db<C>
impl<C: CanisterKind> Copy for Db<C>
Auto Trait Implementations§
impl<C> Freeze for Db<C>
impl<C> RefUnwindSafe for Db<C>where
C: RefUnwindSafe,
impl<C> Send for Db<C>where
C: Send,
impl<C> Sync for Db<C>where
C: Sync,
impl<C> Unpin for Db<C>where
C: Unpin,
impl<C> UnsafeUnpin for Db<C>
impl<C> UnwindSafe for Db<C>where
C: UnwindSafe,
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