pub struct Live { /* private fields */ }Expand description
Manages a live-updating region of the terminal.
Implementations§
Source§impl Live
impl Live
pub fn new(renderable: impl Renderable + Send + Sync + 'static) -> Self
pub fn screen(self) -> Self
pub fn no_auto_refresh(self) -> Self
pub fn refresh_per_second(self, rate: f64) -> Self
pub fn transient(self) -> Self
pub fn start(&mut self) -> Result<()>
pub fn stop(&mut self) -> Result<()>
pub fn update( &mut self, renderable: impl Renderable + Send + Sync + 'static, ) -> Result<()>
pub fn refresh(&mut self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Live
impl !RefUnwindSafe for Live
impl Send for Live
impl Sync for Live
impl Unpin for Live
impl UnsafeUnpin for Live
impl !UnwindSafe for Live
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