[][src]Struct bader::progress::Bar

pub struct Bar {
    pub pbar: Arc<ProgressBar>,
    // some fields omitted
}

Contains the indicatif progress bar and an atomic_counter RelaxedCounter. The counter is used to update the bar for use with a rayon iterator

Fields

pbar: Arc<ProgressBar>

An Arc wrapped ProgressBar from indicatif.

Implementations

impl Bar[src]

pub fn new(progress_bar: ProgressBar, refresh_rate: u64, prefix: String) -> Self[src]

Creates the Bar struct with a size, refresh_rate and prefix for the bar

pub fn tick(&self)[src]

tick the progress bar

Trait Implementations

impl Drop for Bar[src]

fn drop(&mut self)[src]

make sure we clear bars when the object is dropped

Auto Trait Implementations

impl RefUnwindSafe for Bar

impl Send for Bar

impl Sync for Bar

impl Unpin for Bar

impl UnwindSafe for Bar

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.