pub struct LiveHandle<W: Write> { /* private fields */ }Expand description
Implementations§
Source§impl<W: Write + Send + 'static> LiveHandle<W>
impl<W: Write + Send + 'static> LiveHandle<W>
Sourcepub fn print(&self, renderable: Box<dyn Renderable + Send>)
pub fn print(&self, renderable: Box<dyn Renderable + Send>)
Live::print on the refresh thread.
Sourcepub fn print_str(&self, content: impl Into<String>)
pub fn print_str(&self, content: impl Into<String>)
Live::print_str on the refresh thread.
Sourcepub fn log_at(
&self,
objects: &[LogObject<'_>],
options: &LogOptions<'_>,
file: &str,
line: u32,
) -> Result<()>
pub fn log_at( &self, objects: &[LogObject<'_>], options: &LogOptions<'_>, file: &str, line: u32, ) -> Result<()>
log with the caller’s file and line given.
Sourcepub fn file_proxy<F: Write>(
&self,
stream: ProxyStream,
file: F,
) -> FileProxy<Self, F> ⓘ
pub fn file_proxy<F: Write>( &self, stream: ProxyStream, file: F, ) -> FileProxy<Self, F> ⓘ
A proxy for stream over file.
Trait Implementations§
Source§impl<W: Write> Clone for LiveHandle<W>
impl<W: Write> Clone for LiveHandle<W>
Source§impl<W: Write + Send + 'static> ProxyTarget for LiveHandle<W>
impl<W: Write + Send + 'static> ProxyTarget for LiveHandle<W>
Source§fn proxy_write(&mut self, stream: ProxyStream, bytes: &[u8]) -> bool
fn proxy_write(&mut self, stream: ProxyStream, bytes: &[u8]) -> bool
Upstream’s
FileProxy.write: buffer bytes and print every completed
line through the display.Source§fn proxy_flush(&mut self, stream: ProxyStream) -> bool
fn proxy_flush(&mut self, stream: ProxyStream) -> bool
Upstream’s
FileProxy.flush: print a buffered partial line.Auto Trait Implementations§
impl<W> Freeze for LiveHandle<W>
impl<W> RefUnwindSafe for LiveHandle<W>
impl<W> Send for LiveHandle<W>
impl<W> Sync for LiveHandle<W>
impl<W> Unpin for LiveHandle<W>
impl<W> UnsafeUnpin for LiveHandle<W>
impl<W> UnwindSafe for LiveHandle<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