Struct self_update::Download [] [src]

pub struct Download { /* fields omitted */ }

Download things into files

Methods

impl Download
[src]

Specify download url

Toggle download progress bar

Download the file behind the given url into the specified dest. Show a sliding progress bar if specified. If the resource doesn't specify a content-length, the progress bar will not be shown

  • Errors:
    • reqwest network errors
    • Unsuccessful response status
    • Progress-bar errors
    • Reading from response to BufReader-buffer
    • Writing from BufReader-buffer to File

Trait Implementations

impl Debug for Download
[src]

Formats the value using the given formatter.