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§
Sourcetype Response: Future<Output = RetrievedDependency> + Send
type Response: Future<Output = RetrievedDependency> + Send
Future that resolves to a RetrievedDependency
.
It cannot fail.
Required Methods§
Sourcefn get_dependency(&self, dependency: Dependency) -> Self::Response
fn get_dependency(&self, dependency: Dependency) -> Self::Response
Validates dependency’s information from the original source.