pub struct AutoLive<W: Write + Send + 'static> { /* private fields */ }Expand description
Implementations§
Source§impl<W: Write + Send + 'static> AutoLive<W>
impl<W: Write + Send + 'static> AutoLive<W>
Sourcepub fn update(&self, renderable: Box<dyn Renderable + Send>)
pub fn update(&self, renderable: Box<dyn Renderable + Send>)
Swap in a new renderable; the thread redraws it promptly.
Sourcepub fn refresh_wait(&self)
pub fn refresh_wait(&self)
Redraw now and wait until the frame is written, as upstream’s
Live.refresh() renders in the caller’s thread. A renderable that reads
shared state then shows the state as of this call.
Trait Implementations§
Auto Trait Implementations§
impl<W> !RefUnwindSafe for AutoLive<W>
impl<W> !UnwindSafe for AutoLive<W>
impl<W> Freeze for AutoLive<W>
impl<W> Send for AutoLive<W>
impl<W> Sync for AutoLive<W>
impl<W> Unpin for AutoLive<W>
impl<W> UnsafeUnpin for AutoLive<W>
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