Skip to main content

Module spinner

Module spinner 

Source
Expand description

Indeterminate spinner for unknown-length operations.

IndeterminateSpinner shows activity feedback when the total count or duration is not known. Useful for connection establishment, complex queries, etc.

§Example

use sqlmodel_console::renderables::{IndeterminateSpinner, SpinnerStyle};

let spinner = IndeterminateSpinner::new("Connecting to database")
    .style(SpinnerStyle::Dots);

// Plain text: "[...] Connecting to database (2.3s)"
println!("{}", spinner.render_plain());

Structs§

IndeterminateSpinner
A spinner for operations with unknown total count or duration.

Enums§

SpinnerStyle
Spinner animation style.