pub struct DisplayInputs {
pub state: RunStateHandle,
pub frame_rx: Option<Receiver<MetricSet>>,
pub metrics_query: Option<Arc<MetricsQuery>>,
}Expand description
Inputs every sink consumes. Cheap to construct: every field
is either an Arc clone or an mpsc::Receiver (single-
consumer, owned by the sink that takes it).
The two non-state fields are optional: a LogOnlySink
that just renders log lines doesn’t need either; the eventual
crate::app::App-backed TuiSink and the future
FakeTuiSink need both. None means “this sink doesn’t
consume frames / query the cadence store” — the runner-side
wiring is responsible for not registering a reporter when no
sink will drain it.
Fields§
§state: RunStateHandleRead-only access to the actor’s published Arc<RunState>.
Sinks load snapshots via state.load() on their own
schedule (TUI app polls at tick_rate; log-only sinks
poll on log-seq deltas).
frame_rx: Option<Receiver<MetricSet>>Base-cadence metrics frames from the cadence reporter.
None for sinks that don’t render frames.
metrics_query: Option<Arc<MetricsQuery>>Cadence-windowed query handle. None for sinks that
don’t render per-cadence views.
Auto Trait Implementations§
impl !RefUnwindSafe for DisplayInputs
impl !Sync for DisplayInputs
impl !UnwindSafe for DisplayInputs
impl Freeze for DisplayInputs
impl Send for DisplayInputs
impl Unpin for DisplayInputs
impl UnsafeUnpin for DisplayInputs
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
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> ⓘ
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> ⓘ
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