Struct squid::download::Options
[−]
[src]
pub struct Options { pub thread_count: u16, pub chunk_size: u64, pub output_directory: String, pub output_file_name: String, }
Represents a download task's options.
Fields
thread_count: u16
The maximum threads to use.
Defaults to 4
.
chunk_size: u64
The maximum size of a chunk (in kilobytes).
Defaults to 5000
.
output_directory: String
The output directory path where the downloaded file is to be saved.
Defaults to "./"
(the working directory).
output_file_name: String
The name given to the downloaded file.
Defaults to ""
.
If the empty string is specified, the name suggested by the server
will be used instead. If the server does not provide a suggestion,
the file is named "untitled"
.
Trait Implementations
impl Clone for Options
[src]
fn clone(&self) -> Options
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Options
[src]
fn eq(&self, __arg_0: &Options) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Options) -> bool
This method tests for !=
.