#[non_exhaustive]pub enum AgentEvent {
WrapperTiming {
timing: WrapperTiming,
},
ActionHit {
crate_name: Option<String>,
restore: RestoreStats,
},
Bypass {
kind: String,
},
Unconsulted,
BypassedCompilation {
kind: String,
crate_name: Option<String>,
duration_ns: u64,
},
CompilerInvocation {
outcome: String,
crate_name: Option<String>,
duration_ns: u64,
},
Verification {
matched: bool,
restore: RestoreStats,
},
Warning {
message: String,
},
Error {
message: String,
},
ActionDiagnostic {
outcome: String,
crate_name: Option<String>,
diagnostic: ActionDiagnostic,
},
}Expand description
One accounted cache decision, as it happens.
The agent already folds every one of these into [AgentStats]; an observer
sees the same decisions individually, before that summing loses the crate
they belong to. Delivered synchronously from the request handler, so an
observer that blocks slows the build it is watching.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
WrapperTiming
An invocation completed its wrapper instrumentation.
Fields
timing: WrapperTimingCompleted invocation timings.
ActionHit
An action’s outputs were restored from cache.
Fields
restore: RestoreStatsRestoration work performed by the adapter.
Bypass
A compilation the adapter declined to cache.
Unconsulted
A compilation no lookup was possible for.
BypassedCompilation
A compilation the adapter declined to cache, and the compiler run that followed.
Emitted in place of Self::Bypass and a bypass
Self::CompilerInvocation when a shim reports both over one
connection, so the reason arrives with the crate and time it cost.
Fields
CompilerInvocation
A real compiler invocation ran.
Fields
Verification
A hit was rebuilt to verify it.
Fields
restore: RestoreStatsRestoration work performed before rebuilding.
Warning
A shim reported a diagnostic for the session to surface.
Error
A shim reported a fatal diagnostic for the session to surface.
ActionDiagnostic
Cache-key material for the action event immediately following it.