pub enum AgentResponse {
Show 26 variants
Hello {
protocol: u8,
agent_version: String,
},
TaskBegun {
run: String,
},
TaskCommitted,
Blob {
path: Option<PathBuf>,
},
Blobs {
paths: Vec<Option<PathBuf>>,
},
Stored {
path: PathBuf,
},
ActionResult {
result: Option<RemoteActionResult>,
},
ActionHitRecorded,
ActionVerificationRecorded,
BypassRecorded,
UnconsultedRecorded,
CompilerInvocationRecorded,
ActionStored {
path: PathBuf,
},
ActionPrediction {
prediction: Option<ActionPrediction>,
},
ActionPredictionRecorded,
ExecutableIdentity {
stdout: Option<Vec<u8>>,
},
Error {
message: String,
},
WarningRecorded,
FileDigests {
digests: Vec<Option<CacheDigest>>,
},
FileDigestsRecorded,
ActionPromise {
claim: Option<String>,
prediction: Option<ActionPrediction>,
},
ActionPromiseCompleted,
FileDigestsResolved {
resolutions: Vec<FileDigestResolution>,
},
WrapperTimingRecorded,
ErrorRecorded,
DebugRecorded,
}Expand description
A response returned by the task-scoped cache agent.
Variants§
Hello
Successful protocol negotiation.
TaskBegun
A task prediction run was begun.
TaskCommitted
A task prediction run was committed.
Blob
A local CAS path already verified against the requested digest.
Blobs
Local CAS paths already verified against the requested digests.
Stored
A blob was stored locally.
ActionResult
Result of an action lookup.
Fields
result: Option<RemoteActionResult>Validated action result, or None on a cache miss.
ActionHitRecorded
Hit statistics were updated.
ActionVerificationRecorded
Verification statistics were updated.
BypassRecorded
Bypass statistics were updated.
UnconsultedRecorded
Unconsulted-compilation statistics were updated.
CompilerInvocationRecorded
Compiler invocation accounting was recorded.
ActionStored
An action result was stored.
ActionPrediction
Result of an input-prediction lookup.
Fields
prediction: Option<ActionPrediction>Matching prediction, or None when none is known.
ActionPredictionRecorded
An input prediction was recorded.
ExecutableIdentity
Result of an executable-identity lookup.
Error
The request failed without terminating the agent connection.
WarningRecorded
A shim diagnostic was accepted for the session to surface.
Kept after Error so this acknowledgement remains alongside the
existing diagnostic response without changing earlier variants.
FileDigests
Digests recorded earlier for the requested file identities.
Fields
digests: Vec<Option<CacheDigest>>Recorded digests or misses, in request order.
FileDigestsRecorded
File digests were recorded.
ActionPromise
State of an optional server-wide compilation promise.
Fields
prediction: Option<ActionPrediction>Completed prediction, when another client compiled first.
ActionPromiseCompleted
A server-wide compilation promise was fulfilled or safely skipped.
FileDigestsResolved
Digests and scope-specific validation outcomes for requested files.
Fields
resolutions: Vec<FileDigestResolution>Resolution outcomes in request order.
WrapperTimingRecorded
Wrapper phase timings were recorded.
ErrorRecorded
A fatal shim diagnostic was accepted for the session to surface.
This is appended to preserve every existing response variant and wire shape while giving fatal diagnostics their own acknowledgement.
DebugRecorded
A debug record was accepted, including when filtered out.