Skip to main content

Backend

Trait Backend 

Source
pub trait Backend {
    // Required methods
    fn name(&self) -> &str;
    fn fetch(&self, url: &str, dest: &Path) -> VtaResult<()>;
}
Expand description

A fetch backend (curated, github-releases, direct-url, …).

Required Methods§

Source

fn name(&self) -> &str

Source

fn fetch(&self, url: &str, dest: &Path) -> VtaResult<()>

Fetch url into dest (a path in the download cache).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§