pub struct Live<'a> { /* private fields */ }Expand description
Live display context manager.
Manages a live-updating display in the terminal.
Implementations§
Source§impl<'a> Live<'a>
impl<'a> Live<'a>
Sourcepub fn new(renderable: impl Renderable + 'static, console: &'a Console) -> Self
pub fn new(renderable: impl Renderable + 'static, console: &'a Console) -> Self
Create a new Live display.
Sourcepub fn transient(self, transient: bool) -> Self
pub fn transient(self, transient: bool) -> Self
Set whether the display should be cleared on exit.
Sourcepub fn refresh_rate(self, rate: u64) -> Self
pub fn refresh_rate(self, rate: u64) -> Self
Set the refresh rate (currently unused in manual refresh mode).
Sourcepub fn update(&mut self, renderable: impl Renderable + 'static)
pub fn update(&mut self, renderable: impl Renderable + 'static)
Update the renderable and refresh the display.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Live<'a>
impl<'a> !RefUnwindSafe for Live<'a>
impl<'a> !Send for Live<'a>
impl<'a> !Sync for Live<'a>
impl<'a> Unpin for Live<'a>
impl<'a> !UnwindSafe for Live<'a>
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