pub struct TuiReporter { /* private fields */ }Expand description
A metrics reporter that forwards snapshots to the TUI via a channel.
Implementations§
Trait Implementations§
Source§impl Reporter for TuiReporter
impl Reporter for TuiReporter
fn report(&mut self, snapshot: &MetricSet)
fn flush(&mut self)
Source§fn finished(&self) -> bool
fn finished(&self) -> bool
Self-termination signal. After a
report
that leaves this true, the subscriber’s cadence-feed dispatch
worker exits its loop (calling flush on the
way out) — the subscriber receives no further pulses. A one-shot
subscriber — e.g. a settle / stop evaluator that has set a
terminal phase disposition — uses this to unregister itself
without a self-join deadlock (it runs on the worker thread, so it
cannot call unsubscribe on itself directly). Default false
(a long-lived subscriber that never self-terminates).Auto Trait Implementations§
impl Forget for TuiReporter
impl Freeze for TuiReporter
impl Move for TuiReporter
impl RefUnwindSafe for TuiReporter
impl Send for TuiReporter
impl Sync for TuiReporter
impl Unpin for TuiReporter
impl UnsafeUnpin for TuiReporterwhere
*mut Counter<Channel<MetricSet>>: UnsafeUnpin,
*mut Counter<Channel<MetricSet>>: UnsafeUnpin,
*mut Counter<Channel<MetricSet>>: UnsafeUnpin,
impl UnwindSafe for TuiReporter
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more