Struct salsa::Storage [−][src]
pub struct Storage<DB: DatabaseStorageTypes> { /* fields omitted */ }
Stores the cached results and dependency information for all the queries
defined on your salsa database. Also embeds a Runtime
which is used to
manage query execution. Every database must include a storage: Storage<Self>
field.
Implementations
impl<DB: DatabaseStorageTypes> Storage<DB>
[src]
impl<DB: DatabaseStorageTypes> Storage<DB>
[src]pub fn salsa_runtime(&self) -> &Runtime
[src]
Gives access to the underlying salsa runtime.
pub fn salsa_runtime_mut(&mut self) -> &mut Runtime
[src]
Gives access to the underlying salsa runtime.
pub fn query_store(&self) -> &DB::DatabaseStorage
[src]
Access the query storage tables. Not meant to be used directly by end users.
pub fn snapshot(&self) -> Self
[src]
Returns a “snapshotted” storage, suitable for use in a forked database.
This snapshot hold a read-lock on the global state, which means that any
attempt to set
an input will block until the forked runtime is
dropped. See ParallelDatabase::snapshot
for more information.
Warning. This second handle is intended to be used from a separate thread. Using two database handles from the same thread can lead to deadlock.
Trait Implementations
Auto Trait Implementations
impl<DB> RefUnwindSafe for Storage<DB> where
<DB as DatabaseStorageTypes>::DatabaseStorage: RefUnwindSafe,
impl<DB> RefUnwindSafe for Storage<DB> where
<DB as DatabaseStorageTypes>::DatabaseStorage: RefUnwindSafe,
impl<DB> UnwindSafe for Storage<DB> where
<DB as DatabaseStorageTypes>::DatabaseStorage: RefUnwindSafe,
impl<DB> UnwindSafe for Storage<DB> where
<DB as DatabaseStorageTypes>::DatabaseStorage: RefUnwindSafe,