[−][src]Struct salsa::Storage
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]
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,
<DB as DatabaseStorageTypes>::DatabaseStorage: RefUnwindSafe,
impl<DB> Send for Storage<DB> where
<DB as DatabaseStorageTypes>::DatabaseStorage: Send + Sync,
<DB as DatabaseStorageTypes>::DatabaseStorage: Send + Sync,
impl<DB> !Sync for Storage<DB>
impl<DB> Unpin for Storage<DB>
impl<DB> UnwindSafe for Storage<DB> where
<DB as DatabaseStorageTypes>::DatabaseStorage: RefUnwindSafe,
<DB as DatabaseStorageTypes>::DatabaseStorage: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,