Struct salsa::Storage[][src]

pub struct Storage<DB: DatabaseStorageTypes> { /* fields omitted */ }
Expand description

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

Gives access to the underlying salsa runtime.

Gives access to the underlying salsa runtime.

Access the query storage tables. Not meant to be used directly by end users.

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

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.