Skip to main content

ProgressSink

Trait ProgressSink 

Source
pub trait ProgressSink: Send + Sync {
    // Required method
    fn on_file(&self, path: &Path, bytes: u64);
}
Expand description

Receives progress events from the write pipeline.

Required Methods§

Source

fn on_file(&self, path: &Path, bytes: u64)

A file was accepted for packing (after stat, before compression completes).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F> ProgressSink for F
where F: Fn(&Path, u64) + Send + Sync,