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

The maximum threads to use.

Defaults to 4.

The maximum size of a chunk (in kilobytes).

Defaults to 5000.

The output directory path where the downloaded file is to be saved.

Defaults to "./" (the working directory).

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Options
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Options
[src]

impl Debug for Options
[src]

Formats the value using the given formatter.

impl Default for Options
[src]

Creates an Options structure with default values.