Molybden API
Loading...
Searching...
No Matches
molybden::DownloadUpdated Struct Reference

The DownloadEvents::onDownloadUpdated event arguments. More...

#include <download_events.hpp>

Public Attributes

std::shared_ptr< Downloaddownload
 The download instance initiated this event.
 
int64_t current_speed
 The current download speed estimate in bytes/second.
 
int64_t total_bytes
 The total size of the downloaded file in bytes.
 
int64_t received_bytes
 The number or received (downloaded) bytes.
 
int percent_complete
 The rough percent complete.
 

Detailed Description

The DownloadEvents::onDownloadUpdated event arguments.

Member Data Documentation

◆ percent_complete

int molybden::DownloadUpdated::percent_complete

The rough percent complete.

Returns -1 if progress is unknown. 100 if the download is already complete.


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