pub struct OutputManager {
pub verbose: bool,
/* private fields */
}Fields§
§verbose: boolImplementations§
Source§impl OutputManager
impl OutputManager
pub fn new(verbose: bool) -> Self
pub fn new_quiet() -> Self
pub fn trace(&self, message: &str)
pub fn debug(&self, message: &str)
pub fn verbose(&self, message: &str)
pub fn info(&self, message: &str)
pub fn success(&self, message: &str)
pub fn warning(&self, message: &str)
pub fn error(&self, message: &str)
pub fn progress(&self, message: &str)
pub fn progress_done(&self)
pub fn section(&self, title: &str)
pub fn subsection(&self, title: &str)
pub fn step(&self, step: &str)
pub fn detail(&self, detail: &str)
pub fn summary(&self, title: &str, items: &[String])
pub fn summary_kv(&self, title: &str, items: &[(&str, String)])
pub fn list(&self, title: &str, items: &[String])
pub fn table(&self, headers: &[&str], rows: &[Vec<String>])
pub fn progress_with_metrics(&self, current: u64, total: u64, operation: &str)
pub fn progress_bar( &self, current: u64, total: u64, operation: &str, width: usize, )
pub fn format_size(&self, bytes: u64) -> String
pub fn format_duration(&self, duration: Duration) -> String
pub fn format_speed(&self, bytes_per_second: u64) -> String
pub fn format_percentage(&self, current: u64, total: u64) -> String
pub fn elapsed_time(&self) -> Duration
pub fn reset_timer(&mut self)
Trait Implementations§
Source§impl Clone for OutputManager
impl Clone for OutputManager
Source§fn clone(&self) -> OutputManager
fn clone(&self) -> OutputManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OutputManager
impl RefUnwindSafe for OutputManager
impl Send for OutputManager
impl Sync for OutputManager
impl Unpin for OutputManager
impl UnwindSafe for OutputManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more