Struct self_update::Download [−][src]
pub struct Download { /* fields omitted */ }
Expand description
Download things into files
With optional progress bar
Implementations
Toggle download progress bar
Set the progress style
Set the download request headers, replaces the existing HeaderMap
Set a download request header, inserts into the existing HeaderMap
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 toFile
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Download
impl UnwindSafe for Download
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more