pub struct ProgressOutput { /* private fields */ }Implementations§
Source§impl ProgressOutput
impl ProgressOutput
pub fn new() -> ProgressOutput
Sourcepub fn recorder() -> (ProgressOutput, Arc<Mutex<Vec<String>>>)
pub fn recorder() -> (ProgressOutput, Arc<Mutex<Vec<String>>>)
A capturing Ui for tests: renders nothing, records the plain line each method would have written.
Sourcepub fn step(&self, verb: &str, detail: &str)
pub fn step(&self, verb: &str, detail: &str)
⠋ Resolving rootledev/rootle-gitlab… — the in-progress line,
replaced by the done line on the next step call.
Sourcepub fn done(&self, verb: &str, detail: &str)
pub fn done(&self, verb: &str, detail: &str)
✓ Resolved rootledev/rootle-gitlab — the completed step.
Replaces the in-progress line (same position, same verb, now
green, past tense implied by the check).
Sourcepub fn update_row(&self, glyph: &str, name: &str, detail: &str)
pub fn update_row(&self, glyph: &str, name: &str, detail: &str)
A sweep row (0019 M1): ✓ gitlab v0.2.0 → v0.2.1. The glyph
colors itself — ✓ green, ✗ red, everything else dim.
Sourcepub fn summary(
&self,
verb: &str,
subject: &str,
detail: &str,
elapsed: Duration,
)
pub fn summary( &self, verb: &str, subject: &str, detail: &str, elapsed: Duration, )
The dim summary line: Installed gitlab v0.1.0 in 2.3s.
Sourcepub fn spinner(&self, label: &str) -> SpinnerGuard
pub fn spinner(&self, label: &str) -> SpinnerGuard
Start a braille spinner on a background thread; returns a guard whose Drop stops it and clears the line. The label is the in-progress message.
Sourcepub fn row(
&self,
name: &str,
version: &str,
source: &str,
active: bool,
pinned: bool,
)
pub fn row( &self, name: &str, version: &str, source: &str, active: bool, pinned: bool, )
A list row: gitlab v0.1.0 rootledev/rootle-gitlab ← ACTIVE.
pub fn empty_hint(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProgressOutput
impl RefUnwindSafe for ProgressOutput
impl Send for ProgressOutput
impl Sync for ProgressOutput
impl Unpin for ProgressOutput
impl UnsafeUnpin for ProgressOutput
impl UnwindSafe for ProgressOutput
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