pub trait Fetcher {
// Required method
fn fetch(&self, dep: &Dep) -> Result<FetchedPkg, PkgError>;
}Expand description
Required Methods§
Sourcefn fetch(&self, dep: &Dep) -> Result<FetchedPkg, PkgError>
fn fetch(&self, dep: &Dep) -> Result<FetchedPkg, PkgError>
Fetch the package described by dep and return a FetchedPkg.
§Errors
Returns PkgError on any git, I/O, or validation failure.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".