pub trait RuntimeAdapter: Send + Sync {
// Required methods
fn kind(&self) -> RuntimeKind;
fn diagnose(
&self,
runner: &dyn CommandRunner,
limits: CaptureLimits,
) -> DiagnosticReport;
}Expand description
An injectable native-runtime adapter. Implementations parse captured raw output into typed report fields and must discard the raw bytes afterward.
Required Methods§
fn kind(&self) -> RuntimeKind
fn diagnose( &self, runner: &dyn CommandRunner, limits: CaptureLimits, ) -> DiagnosticReport
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".