pub enum AgentResponse {
Show 22 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,
}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.
Sits past Error for the reason AgentRequest::RecordWarning sits
last: anywhere earlier renumbers the variants below it. New variants go
here.
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.
Trait Implementations§
Source§impl Clone for AgentResponse
impl Clone for AgentResponse
Source§fn clone(&self) -> AgentResponse
fn clone(&self) -> AgentResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more