Skip to main content

ProgressColumn

Trait ProgressColumn 

Source
pub trait ProgressColumn: Send + Sync {
    // Required methods
    fn table_column(&self) -> Column;
    fn render(
        &self,
        task: &ProgressTask,
        now: f64,
        options: &ConsoleOptions,
    ) -> Box<dyn Renderable + Send + Sync>;

    // Provided method
    fn max_refresh(&self) -> Option<Duration> { ... }
}

Required Methods§

Source

fn table_column(&self) -> Column

Source

fn render( &self, task: &ProgressTask, now: f64, options: &ConsoleOptions, ) -> Box<dyn Renderable + Send + Sync>

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§