pub trait Adapter: Send + Sync {
// Required methods
fn framework(&self) -> Framework;
fn detect(&self, root: &Path) -> bool;
fn load(&self, root: &Path, ignore_tests: bool) -> Result<Vec<ScanTarget>>;
// Provided method
fn load_with_filter(
&self,
root: &Path,
filter: &ScanPathFilter,
) -> Result<Vec<ScanTarget>> { ... }
}Expand description
An adapter detects a specific agent framework and loads its artifacts into the unified IR.
Required Methods§
Provided Methods§
fn load_with_filter( &self, root: &Path, filter: &ScanPathFilter, ) -> Result<Vec<ScanTarget>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".