pub struct LiveStatus<W: Write + Send + 'static> { /* private fields */ }Expand description
A running Status display, returned by Status::start.
Implementations§
Source§impl<W: Write + Send + 'static> LiveStatus<W>
impl<W: Write + Send + 'static> LiveStatus<W>
Sourcepub fn update(
&self,
status: Option<&str>,
spinner: Option<&str>,
spinner_style: Option<StyleType>,
speed: Option<f64>,
)
pub fn update( &self, status: Option<&str>, spinner: Option<&str>, spinner_style: Option<StyleType>, speed: Option<f64>, )
Status::update on the running status. As upstream, a new spinner
redraws at once (and returns once drawn); other changes show at the
next refresh.
Sourcepub fn with<R>(&self, f: impl FnOnce(&mut Status) -> R) -> R
pub fn with<R>(&self, f: impl FnOnce(&mut Status) -> R) -> R
Run f on the running status (for Status::update_text and
Status::update_renderable); the change shows at the next refresh.
Sourcepub fn refresh(&self)
pub fn refresh(&self)
Redraw now, returning once the frame is written (upstream’s
status._live.refresh()).
Sourcepub fn print(&self, renderable: Box<dyn Renderable + Send>)
pub fn print(&self, renderable: Box<dyn Renderable + Send>)
Print renderable above the status (upstream’s status.console.print).
Sourcepub fn stdout(&self) -> FileProxy<LiveHandle<W>, Stdout> ⓘ
pub fn stdout(&self) -> FileProxy<LiveHandle<W>, Stdout> ⓘ
A writer standing in for stdout while the status runs; see
AutoLive::stdout.
Sourcepub fn file_proxy<F: Write>(
&self,
stream: ProxyStream,
file: F,
) -> FileProxy<LiveHandle<W>, F> ⓘ
pub fn file_proxy<F: Write>( &self, stream: ProxyStream, file: F, ) -> FileProxy<LiveHandle<W>, F> ⓘ
A proxy for stream over any file.
Auto Trait Implementations§
impl<W> !RefUnwindSafe for LiveStatus<W>
impl<W> !UnwindSafe for LiveStatus<W>
impl<W> Freeze for LiveStatus<W>
impl<W> Send for LiveStatus<W>
impl<W> Sync for LiveStatus<W>
impl<W> Unpin for LiveStatus<W>
impl<W> UnsafeUnpin for LiveStatus<W>where
AutoLive<W>: UnsafeUnpin,
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