pub struct ProgressReporter { /* private fields */ }Expand description
Progress reporter for Docker operations
Manages multiple progress bars for concurrent operations like multi-layer image pulls and build steps.
Implementations§
Source§impl ProgressReporter
impl ProgressReporter
Sourcepub fn with_context(context: &str) -> Self
pub fn with_context(context: &str) -> Self
Create a new progress reporter with a context prefix
The context is shown before step messages, e.g., “Building Docker image · Step 1/10”
Sourcepub fn add_spinner(&mut self, id: &str, message: &str) -> &ProgressBar
pub fn add_spinner(&mut self, id: &str, message: &str) -> &ProgressBar
Create a spinner for indeterminate progress (e.g., build steps)
Sourcepub fn add_bar(&mut self, id: &str, total: u64) -> &ProgressBar
pub fn add_bar(&mut self, id: &str, total: u64) -> &ProgressBar
Create a progress bar for determinate progress (e.g., layer download)
total is in bytes
Sourcepub fn update_layer(
&mut self,
layer_id: &str,
current: u64,
total: u64,
status: &str,
)
pub fn update_layer( &mut self, layer_id: &str, current: u64, total: u64, status: &str, )
Update progress for a layer (used during image pull)
current and total are in bytes, status is the Docker status message
Sourcepub fn update_spinner(&mut self, id: &str, message: &str)
pub fn update_spinner(&mut self, id: &str, message: &str)
Update spinner message (used during build)
Updates are throttled to prevent flickering from rapid message changes. “Step X/Y” messages always update immediately as they indicate significant progress.
Sourcepub fn finish_all(&self, message: &str)
pub fn finish_all(&self, message: &str)
Mark all progress as complete
Sourcepub fn abandon_all(&self, message: &str)
pub fn abandon_all(&self, message: &str)
Mark all progress as failed
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProgressReporter
impl RefUnwindSafe for ProgressReporter
impl Send for ProgressReporter
impl Sync for ProgressReporter
impl Unpin for ProgressReporter
impl UnwindSafe for ProgressReporter
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request