pub struct TraceRenderer { /* private fields */ }Expand description
Buffers a trace session’s incoming bytes into lines and renders each one
into the view, exactly as crate::pipeline::Pipeline does for a
tokens session – but through render_line instead of
trace-stream.
Implementations§
Source§impl TraceRenderer
impl TraceRenderer
pub fn new() -> Self
Sourcepub fn feed(&mut self, bytes: &[u8], view: &mut StreamView)
pub fn feed(&mut self, bytes: &[u8], view: &mut StreamView)
Pushes stream bytes into the buffer, emitting a completed line to
view for every \n found, and updating the partial line.
Sourcepub fn finish(&mut self, view: &mut StreamView)
pub fn finish(&mut self, view: &mut StreamView)
Ends the stream: flushes any trailing partial line as a completed one.
Trait Implementations§
Source§impl Debug for TraceRenderer
impl Debug for TraceRenderer
Source§impl Default for TraceRenderer
impl Default for TraceRenderer
Source§fn default() -> TraceRenderer
fn default() -> TraceRenderer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TraceRenderer
impl RefUnwindSafe for TraceRenderer
impl Send for TraceRenderer
impl Sync for TraceRenderer
impl Unpin for TraceRenderer
impl UnsafeUnpin for TraceRenderer
impl UnwindSafe for TraceRenderer
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