Skip to main content

AsyncLinkExtractor

Trait AsyncLinkExtractor 

Source
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§

Source

type Family: ContractFamily

Contract family this extractor belongs to.

Required Methods§

Source

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".

Implementors§