#[non_exhaustive]pub enum AgentEvent {
WrapperTiming {
timing: WrapperTiming,
},
ActionHit {
crate_name: Option<String>,
restore: RestoreStats,
},
Bypass {
kind: String,
},
Unconsulted,
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.
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.
Trait Implementations§
Source§impl Clone for AgentEvent
impl Clone for AgentEvent
Source§fn clone(&self) -> AgentEvent
fn clone(&self) -> AgentEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more