[−][src]Struct procedure::Progress
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]
action: &'a str,
description: &'a str,
padding: usize
) -> Progress<'a>
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,