pub struct Event {
    pub runtime_id: RuntimeId,
    pub kind: EventKind,
}
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

Formats the value using the given formatter. Read more
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 more
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
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

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
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.