Public declaration syntax from forge-rs/harness-apd/src/driver.rs Original source SHA-256: 7b4af215e5351992fc93637fb11179f5cc6dff75bdec76233a861391862fb9f1 Function bodies and constant values are omitted. This is not the complete implementation. Source line 49 #[derive(Debug)] pub struct RunArtifacts { /// The runner-facing result (`apd-harness-result/1`). pub result: ApdRunResult, /// The full HarnessSpec run record (`harness.run.v1`). pub record: RunRecord } Source line 58 #[derive(Debug, thiserror::Error)] pub enum DriverError { /// The spec could not be read or parsed. #[error("spec: {0}")] Spec(String), /// A plane could not be constructed. #[error("plane binding: {0}")] Binding(String), /// Admission denied the harness (denied runs never execute, ยง4.4). #[error("admission denied: {0}")] Admission(String), /// The run itself faulted outside the terminal-outcome contract. #[error("runtime: {0}")] Runtime(String), /// Writing an artifact failed. #[error("artifact write: {0}")] Artifact(String), } Source line 77 pub async fn run(spec: &ApdTaskSpec, events_path: PathBuf) -> Result;