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

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

Trait used by the DocsRs struct to retrieve dependencies.

Required Associated Types§

Future that resolves to a RetrievedDependency. It cannot fail.

Required Methods§

Validates dependency’s information from the original source.

Implementors§