mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-12-01 04:18:30 +00:00
improve comment
This commit is contained in:
parent
4054817a96
commit
4b4ab53cdb
1 changed files with 3 additions and 0 deletions
|
@ -26,6 +26,9 @@ pub mod transparent;
|
||||||
|
|
||||||
pub use self::runtime::Runtime;
|
pub use self::runtime::Runtime;
|
||||||
|
|
||||||
|
/// The base trait which your "query context" must implement. Gives
|
||||||
|
/// access to the salsa runtime, which you must embed into your query
|
||||||
|
/// context (along with whatever other state you may require).
|
||||||
pub trait QueryContext: Sized + HasQueryContextDescriptor {
|
pub trait QueryContext: Sized + HasQueryContextDescriptor {
|
||||||
/// Gives access to the underlying salsa runtime.
|
/// Gives access to the underlying salsa runtime.
|
||||||
fn salsa_runtime(&self) -> &runtime::Runtime<Self>;
|
fn salsa_runtime(&self) -> &runtime::Runtime<Self>;
|
||||||
|
|
Loading…
Reference in a new issue