typst_kit::download

Trait Progress

source
pub trait Progress {
    // Required methods
    fn print_start(&mut self);
    fn print_progress(&mut self, state: &DownloadState);
    fn print_finish(&mut self, state: &DownloadState);
}
Expand description

Manages progress reporting for downloads.

Required Methods§

source

fn print_start(&mut self)

Invoked when a download is started.

source

fn print_progress(&mut self, state: &DownloadState)

Invoked repeatedly while a download is ongoing.

source

fn print_finish(&mut self, state: &DownloadState)

Invoked when a download is finished.

Implementors§