pub struct FmtLineWriter<W: Write> { /* private fields */ }Expand description
Event writer that formats events as lines of text using core::fmt::Write.
This is a no_std friendly sink that can write to any type that implements
fmt::Write, such as a ring buffer or fixed size string.
Implementations§
Trait Implementations§
Source§impl<W: Write> TelemetrySink for FmtLineWriter<W>
impl<W: Write> TelemetrySink for FmtLineWriter<W>
Source§fn push_event(&mut self, e: &TelemetryEvent) -> Result<(), TelemetrySinkError>
fn push_event(&mut self, e: &TelemetryEvent) -> Result<(), TelemetrySinkError>
Write a single telemetry event to the underlying sink.
Source§fn push_metrics<const MAX_NODES: usize, const MAX_EDGES: usize>(
&mut self,
graph: &GraphMetrics<MAX_NODES, MAX_EDGES>,
) -> Result<(), TelemetrySinkError>
fn push_metrics<const MAX_NODES: usize, const MAX_EDGES: usize>( &mut self, graph: &GraphMetrics<MAX_NODES, MAX_EDGES>, ) -> Result<(), TelemetrySinkError>
Write a snapshot of the current graph metrics. Read more
Auto Trait Implementations§
impl<W> Freeze for FmtLineWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for FmtLineWriter<W>where
W: RefUnwindSafe,
impl<W> Send for FmtLineWriter<W>where
W: Send,
impl<W> Sync for FmtLineWriter<W>where
W: Sync,
impl<W> Unpin for FmtLineWriter<W>where
W: Unpin,
impl<W> UnsafeUnpin for FmtLineWriter<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for FmtLineWriter<W>where
W: UnwindSafe,
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