binstalk_downloader::download

Trait TarEntriesVisitor

Source
pub trait TarEntriesVisitor: Send + Sync {
    // Required method
    fn visit<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        entry: &'life1 mut dyn TarEntry,
    ) -> Pin<Box<dyn Future<Output = Result<(), DownloadError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Visitor must iterate over all entries. Entires can be in arbitary order.

Required Methods§

Source

fn visit<'life0, 'life1, 'async_trait>( &'life0 mut self, entry: &'life1 mut dyn TarEntry, ) -> Pin<Box<dyn Future<Output = Result<(), DownloadError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Will be called once per entry

Implementors§