pub struct DbHandle<'db, S> { /* private fields */ }Expand description
A handle to the database during some operation.
This wraps calls to the Db so that any get calls
will be automatically registered as dependencies of
the current operation.
Implementations§
Source§impl<S: Storage> DbHandle<'_, S>
impl<S: Storage> DbHandle<'_, S>
pub fn get<C: OutputType + ComputationId>(&self, compute: C) -> C::Outputwhere
S: StorageFor<C>,
Trait Implementations§
Auto Trait Implementations§
impl<'db, S> Freeze for DbHandle<'db, S>
impl<'db, S> RefUnwindSafe for DbHandle<'db, S>where
S: RefUnwindSafe,
impl<'db, S> Send for DbHandle<'db, S>where
S: Sync,
impl<'db, S> Sync for DbHandle<'db, S>where
S: Sync,
impl<'db, S> Unpin for DbHandle<'db, S>
impl<'db, S> UnwindSafe for DbHandle<'db, S>where
S: RefUnwindSafe,
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