Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::runtime::DownloadResult Struct Reference

#include <model_download.hpp>

Public Attributes

bool ok = false
std::string error
std::filesystem::path path
 The finished file (== request.dest) on success.
std::uint64_t bytes = 0
 Total bytes of the finished file.
std::string sha256
 Hex digest of the finished file.
bool resumed = false
 A prior partial was continued.
bool cancelled = false
 Stopped via callback / token (partial kept for resume).
bool unverified = false
 The request carried no expected digest.

Member Data Documentation

◆ bytes

std::uint64_t pulp::runtime::DownloadResult::bytes = 0

Total bytes of the finished file.

◆ cancelled

bool pulp::runtime::DownloadResult::cancelled = false

Stopped via callback / token (partial kept for resume).

◆ error

std::string pulp::runtime::DownloadResult::error

◆ ok

bool pulp::runtime::DownloadResult::ok = false

◆ path

std::filesystem::path pulp::runtime::DownloadResult::path

The finished file (== request.dest) on success.

◆ resumed

bool pulp::runtime::DownloadResult::resumed = false

A prior partial was continued.

◆ sha256

std::string pulp::runtime::DownloadResult::sha256

Hex digest of the finished file.

◆ unverified

bool pulp::runtime::DownloadResult::unverified = false

The request carried no expected digest.

With ok == false nothing was fetched or written; with ok == true the caller opted in and sha256 is the only record of what arrived.


The documentation for this struct was generated from the following file: