Trait PackageSource

Source
pub trait PackageSource: Send {
    // Required methods
    fn list_all_versions<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        package: &'life1 PackageRef,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<VersionInfo>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_release<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        package: &'life1 PackageRef,
        version: &'life2 Version,
    ) -> Pin<Box<dyn Future<Output = Result<Release, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn stream_content_unvalidated<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        package: &'life1 PackageRef,
        release: &'life2 Release,
    ) -> Pin<Box<dyn Future<Output = Result<BoxStream<'_, Result<Bytes, Error>>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;

    // Provided method
    fn stream_content<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        package: &'life1 PackageRef,
        release: &'life2 Release,
    ) -> Pin<Box<dyn Future<Output = Result<BoxStream<'_, Result<Bytes, Error>>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
}

Required Methods§

Source

fn list_all_versions<'life0, 'life1, 'async_trait>( &'life0 mut self, package: &'life1 PackageRef, ) -> Pin<Box<dyn Future<Output = Result<Vec<VersionInfo>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_release<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, package: &'life1 PackageRef, version: &'life2 Version, ) -> Pin<Box<dyn Future<Output = Result<Release, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn stream_content_unvalidated<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, package: &'life1 PackageRef, release: &'life2 Release, ) -> Pin<Box<dyn Future<Output = Result<BoxStream<'_, Result<Bytes, Error>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Provided Methods§

Source

fn stream_content<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, package: &'life1 PackageRef, release: &'life2 Release, ) -> Pin<Box<dyn Future<Output = Result<BoxStream<'_, Result<Bytes, Error>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§