Progress

Trait Progress 

Source
pub trait Progress:
    Send
    + Sync
    + Clone {
    // Required methods
    fn is_hidden(&self) -> bool;
    fn set_length(&self, len: u64);
    fn set_title(&self, title: &'static str);
    fn inc(&self, inc: u64);
    fn finish(&self);
}
Expand description

Trait to report progress information for any rustic action which supports that.

Implement this trait when you want to display this progress to your users.

Required Methods§

Source

fn is_hidden(&self) -> bool

Check if progress is hidden

Source

fn set_length(&self, len: u64)

Set total length for this progress

§Arguments
  • len - The total length of this progress
Source

fn set_title(&self, title: &'static str)

Set title for this progress

§Arguments
  • title - The title of this progress
Source

fn inc(&self, inc: u64)

Advance progress by given increment

§Arguments
  • inc - The increment to advance this progress
Source

fn finish(&self)

Finish the progress

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§