Skip to main content

HttpLinkExt

Trait HttpLinkExt 

Source
pub trait HttpLinkExt {
    // Required methods
    async fn application_path_decorators(
        &self,
        repo_name: &str,
    ) -> Result<Vec<Vec<String>>>;
    async fn relink_http_calls<F>(
        &self,
        facts: &RepoHttpFacts,
        link: F,
    ) -> Result<RelinkSummary>
       where F: Fn(&HttpLinkInputs) -> Vec<(String, String)>;
}

Required Methods§

Source

async fn application_path_decorators( &self, repo_name: &str, ) -> Result<Vec<Vec<String>>>

The decorators of the repository’s @ApplicationPath types.

Record facts on their :Repository node, then replace every HTTP_CALLS edge with the links link computes (client call UUID, endpoint UUID) from the endpoints, client calls and repository facts of the graph.

One transaction does it all, and it starts by locking the singleton :HttpCallsLock node: a concurrent pass (another indexer or cluster node) waits until this one commits, then reads every entity it saw. The last pass therefore sees every committed repository, and readers never see the edges half replaced.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§