pub fn queue_download(&self, ranges: Vec<Range>) -> Result<()> {
        for range in ranges {
            self.cache
                .insert(range.start, Download::Pending(range.length));
            self.tx.send(range).map_err(|e| anyhow!(e.to_string()))?;
        }
        Ok(())
    }
/// Schedule new downloads for the file
/// The downloads will be started in the specified order.
Schedule new downloads for the file
The downloads will be started in the specified order.
Schedule new downloads for the file The downloads will be started in the specified order .
pub fn queue_download(&self, ranges: Vec<Range>) -> Result<()> {
        for range in ranges {
            self.cache
                .insert(range.start, Download::Pending(range.length));
            self.tx.send(range).map_err(|e| anyhow!(e.to_string()))?;
        }
        Ok(())
    }
pub fn queue_download ( & self , ranges : Vec < Range > ) -> Result < ( ) > { for range in ranges { self . cache . insert ( range . start , Download :: Pending ( range . length ) ) ; self . tx . send ( range ) . map_err ( | e | anyhow ! ( e to_string ( ) ) ) ? ; } Ok ( ( ) ) }
Schedule new downloads for the file
The downloads will be started in the specified order.
Schedule new downloads for the file The downloads will be started in the specified order .
&self
ranges
Vec<Range>
&self
ranges
Vec<Range>