Struct salsa_2022::event::Event
source · [−]Expand description
The Event
struct identifies various notable things that can
occur during salsa execution. Instances of this struct are given
to salsa_event
.
Fields
runtime_id: RuntimeId
The id of the snapshot that triggered the event. Usually 1-to-1 with a thread, as well.
kind: EventKind
What sort of event was it.
Trait Implementations
sourceimpl<Db> DebugWithDb<Db> for Eventwhere
Db: ?Sized + Database,
impl<Db> DebugWithDb<Db> for Eventwhere
Db: ?Sized + Database,
sourcefn fmt(&self, f: &mut Formatter<'_>, db: &Db, include_all_fields: bool) -> Result
fn fmt(&self, f: &mut Formatter<'_>, db: &Db, include_all_fields: bool) -> Result
if
include_all_fields
is false
only identity fields should be read, which means:
- for #[salsa::input] no fields
- for #[salsa::tracked] only fields with #[id]
attribute
- for #[salsa::interned] any field Read morefn debug<'me, 'db>(&'me self, db: &'me Db) -> DebugWith<'me, Db>where
Self: Sized + 'me,
fn debug_with<'me, 'db>(
&'me self,
db: &'me Db,
include_all_fields: bool
) -> DebugWith<'me, Db>where
Self: Sized + 'me,
sourcefn debug_all<'me, 'db>(&'me self, db: &'me Db) -> DebugWith<'me, Db>where
Self: Sized + 'me,
fn debug_all<'me, 'db>(&'me self, db: &'me Db) -> DebugWith<'me, Db>where
Self: Sized + 'me,
Be careful when using this method inside a tracked function,
because the default macro generated implementation will read all fields,
maybe introducing undesired dependencies. Read more
fn into_debug<'me, 'db>(self, db: &'me Db) -> DebugWith<'me, Db>where
Self: Sized + 'me,
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more