pub struct StatusPanel { /* private fields */ }Expand description
Status panel for download output with quiet mode support.
Controls what gets printed to the console during downloads:
- Progress updates (throttled to avoid flicker)
- Completion/error messages
- Summary statistics
When quiet is true, all output is suppressed.
Implementations§
Source§impl StatusPanel
impl StatusPanel
pub fn new(quiet: bool) -> Self
pub fn should_update(&self) -> bool
pub fn touch(&mut self)
pub fn print_download_status(&self, gid: u64, status: &str, progress: &str)
pub fn print_complete(&self, gid: u64, filename: &str, size: &str)
pub fn print_error(&self, gid: u64, error: &str)
pub fn print_summary( &self, total_files: u64, total_size: u64, elapsed_secs: f64, )
Auto Trait Implementations§
impl Freeze for StatusPanel
impl RefUnwindSafe for StatusPanel
impl Send for StatusPanel
impl Sync for StatusPanel
impl Unpin for StatusPanel
impl UnsafeUnpin for StatusPanel
impl UnwindSafe for StatusPanel
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