Skip to main content

DownloadOutcome

Type Alias DownloadOutcome 

Source
pub type DownloadOutcome<L = PathBuf> = Outcome<WasapiFile, L>;
Expand description

Per-file outcome of a WasapiClient::download* stream. An alias for the transfer engine’s Outcome carrying a WasapiFile; its error field is an http_ferry::Error.

Aliased Type§

pub enum DownloadOutcome<L = PathBuf> {
    Downloaded {
        file: WasapiFile,
        location: L,
        verified: bool,
    },
    Failed {
        file: WasapiFile,
        error: Error,
    },
    Progress {
        file: WasapiFile,
        received: u64,
        total: u64,
    },
    Skipped {
        file: WasapiFile,
        location: L,
    },
    StreamFailed {
        error: Error,
    },
}

Variants§

§

Downloaded

Fields

§location: L
§verified: bool
§

Failed

Fields

§error: Error
§

Progress

Fields

§received: u64
§total: u64
§

Skipped

Fields

§location: L
§

StreamFailed

Fields

§error: Error