pub trait AsyncContractLoader: Send + Sync {
type Family: ContractFamily;
type Loaded: Contract<Family = Self::Family> + Send + Sync;
// Required method
async fn load(&self) -> Result<Self::Loaded>;
}Expand description
Async loading of remote or multi-document contracts (I/O primary API).
Parser crates implement this for fetch-and-parse workflows. The loaded value
implements Contract for in-memory traversal.
Required Associated Types§
Sourcetype Family: ContractFamily
type Family: ContractFamily
Contract family metadata for the loader.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".