Trait stati::prelude::__stati_IsBar
source · [−]pub trait __stati_IsBar {
fn done(&mut self);
fn is_done(&self) -> bool;
fn display(&mut self) -> String;
fn close_method(&self) -> BarCloseMethod;
}
Expand description
Basic API of a progress bar, providing methods required for all progress bars
this does NOT encompass all things a bar needs, and you should add more methods for setting progress, initiating the bar, etc.
Required methods
Finishes the Bar
, allowing it to be finalized and dropped by the manager according to
the close method returned by close_method
.
The bar should not be used after this is called.
Checks if the Bar
is done (IsBar::done
as been called)
Formats the Bar
into a string. this is generaly only used by the BarManager
fn close_method(&self) -> BarCloseMethod
fn close_method(&self) -> BarCloseMethod
Returns how the bar should be handled by the BarManager
after done
is called
this is for internal use