[][src]Struct procedure::Progress

pub struct Progress<'a> { /* fields omitted */ }

Representation of the progress structure.

Methods

impl<'a> Progress<'a>[src]

Implementation of the progress structure.

pub fn new(
    action: &'a str,
    description: &'a str,
    padding: usize
) -> Progress<'a>
[src]

Creates a new progress struct.

pub fn initialize(&mut self)[src]

Initializes the progress by setting a percentage of 0%.

pub fn set(&mut self, value: usize)[src]

Sets the percentage value from 1 to 100 of the progress.

pub fn increment(&mut self, offset: usize)[src]

Increment the percentage value with the given offset.

pub fn set_from(&mut self, min: usize, max: usize, value: usize)[src]

Sets the percentage value automatically given a min, a max and the current value. Please note that min < value < max.

Auto Trait Implementations

impl<'a> Send for Progress<'a>

impl<'a> Sync for Progress<'a>

impl<'a> Unpin for Progress<'a>

impl<'a> UnwindSafe for Progress<'a>

impl<'a> RefUnwindSafe for Progress<'a>

Blanket Implementations

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 = !

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.

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

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

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