pub trait ProgressSink {
// Required method
fn on_rename(&mut self, plan: &RenamePlan);
}Expand description
Callback invoked after each successful rename during execution.
Implement this in the caller (e.g. the CLI) to stream rename output as
each operation completes, rather than buffering and printing after the
full batch. The library calls on_rename with the completed plan; the
implementation decides how (or whether) to display it.
A no-op implementation is provided via NullProgressSink.
Required Methods§
Sourcefn on_rename(&mut self, plan: &RenamePlan)
fn on_rename(&mut self, plan: &RenamePlan)
Called immediately after a rename succeeds.