pub struct FetcherProgress {
pub downloaded: u64,
pub total: Option<u64>,
pub phase: FetcherPhase,
}fetcher only.Expand description
Chrome-for-Testing fetcher re-exports.
Gated by the fetcher cargo feature. The driver lives in the
zendriver-fetcher sub-crate; these aliases let downstream code reach the
types without depending on the sub-crate directly. Drive via
BrowserBuilder::ensure_chrome for the common “just download Chrome”
case, or instantiate Fetcher directly for version/channel/cache
customization.
The fetcher’s release-channel enum is re-exported as FetcherChannel to
avoid colliding with the browser-discovery Channel enum (Chrome /
Chromium / Brave / Edge / Auto): the two name different concepts — a
Chrome-for-Testing release channel (Stable/Beta/Dev/Canary) versus which
installed browser to launch.
Progress snapshot emitted by an in-flight fetch.
Fields§
§downloaded: u64Bytes written so far for the current phase.
total: Option<u64>Total bytes expected for the current phase, when known
(e.g. from the Content-Length header during download).
phase: FetcherPhaseCurrent phase.
Trait Implementations§
Source§impl Clone for FetcherProgress
impl Clone for FetcherProgress
Source§fn clone(&self) -> FetcherProgress
fn clone(&self) -> FetcherProgress
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more