Skip to main content

ProgressSink

Trait ProgressSink 

Source
pub trait ProgressSink {
    // Provided methods
    fn message(&mut self, _message: &str) { ... }
    fn transfer(&mut self, _progress: TransferProgress) { ... }
}
Expand description

Receives human-facing progress and summary events from an operation (the “To ” push summary, prune notices, “Cloning into…”, etc.). The orchestration returns structured outcomes regardless; this is purely for presentation, so the default implementations discard everything.

Provided Methods§

Source

fn message(&mut self, _message: &str)

A free-form progress or summary line.

Source

fn transfer(&mut self, _progress: TransferProgress)

Structured transfer progress. Default: ignore (keeps existing impls valid).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§