Retriever

Trait Retriever 

Source
pub trait Retriever:
    Send
    + Sync
    + Debug {
    type Response: Future<Output = RetrievedDependency> + Send;

    // Required method
    fn get_dependency(&self, dependency: Dependency) -> Self::Response;
}
Expand description

Trait used by the DocsRs struct to retrieve dependencies.

Required Associated Types§

Source

type Response: Future<Output = RetrievedDependency> + Send

Future that resolves to a RetrievedDependency. It cannot fail.

Required Methods§

Source

fn get_dependency(&self, dependency: Dependency) -> Self::Response

Validates dependency’s information from the original source.

Implementors§