pub trait Fetcher {
    fn new<'life0, 'async_trait>(
        data: &'life0 Data
    ) -> Pin<Box<dyn Future<Output = Result<Box<Self>, Error>> + Send + 'async_trait>>
    where
        Self: Sized,
        'life0: 'async_trait,
        Self: 'async_trait
;
fn fetch<'life0, 'life1, 'async_trait>(
        &'life0 self,
        dst: &'life1 Path
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn check<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn pkg_fmt(&self) -> PkgFmt;
fn source_name(&self) -> String;
fn is_third_party(&self) -> bool; }

Required methods

Create a new fetcher from some data

Fetch a package

Check if a package is available for download

Return the package format

A short human-readable name or descriptor for the package source

Should return true if the remote is from a third-party source

Implementors