Skip to main content

Module operation_progress

Module operation_progress 

Source
Expand description

Operation progress bar for determinate operations.

OperationProgress displays a progress bar with completion percentage, throughput rate, and estimated time remaining.

§Example

use sqlmodel_console::renderables::OperationProgress;

let progress = OperationProgress::new("Inserting rows", 1000)
    .completed(420);

// Plain text: "Inserting rows: 42% (420/1000)"
println!("{}", progress.render_plain());

Structs§

OperationProgress
A progress bar for operations with known total count.

Enums§

ProgressState
Progress state for styling.