pub trait AsyncLinkExtractor: Send + Sync {
type Family: ContractFamily;
// Required method
async fn extract<C: EntityCategory>(
&self,
entity: &Entity<C>,
manual: &ResolvedManual,
) -> Result<Vec<IntraLink>>;
}Expand description
Extract intra-links with async cross-manual or remote resolution.
Use when link targets require network I/O or external manual fetches.
Required Associated Types§
Sourcetype Family: ContractFamily
type Family: ContractFamily
Contract family this extractor belongs to.
Required Methods§
Sourceasync fn extract<C: EntityCategory>(
&self,
entity: &Entity<C>,
manual: &ResolvedManual,
) -> Result<Vec<IntraLink>>
async fn extract<C: EntityCategory>( &self, entity: &Entity<C>, manual: &ResolvedManual, ) -> Result<Vec<IntraLink>>
Extracts prose-level links, resolving remote or cross-manual targets asynchronously.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".