pub trait Progress {
    fn set_file_size<'life0, 'async_trait>(
        &'life0 mut self,
        size: usize
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn add_to_progress<'life0, 'async_trait>(
        &'life0 mut self,
        amount: usize
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn remove_from_progress<'life0, 'async_trait>(
        &'life0 mut self,
        bytes: usize
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Required methods

Sets the file size with size

Add to the progress with amount

In the case of corrupted bytes we want to reduce the progress, or reset it to 0.

Implementors