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 Forget for DisplayInputs
impl Freeze for DisplayInputswhere
*const ArcInner<ArcSwapAny<Arc<RunState>>> is !null: Freeze,
PhantomData<ArcInner<ArcSwapAny<Arc<RunState>>>>: Freeze,
*mut Counter<Channel<RunStateCmd>>: Freeze,
*mut Counter<Channel<RunStateCmd>>: Freeze,
*mut Counter<Channel<RunStateCmd>>: Freeze,
*const ArcInner<Atomic<bool>> is !null: Freeze,
PhantomData<ArcInner<Atomic<bool>>>: Freeze,
*const ArcInner<Mutex<Vec<Sender<()>>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<Vec<Sender<()>>>>>: Freeze,
*const ArcInner<Mutex<Option<Receiver<LogLine>>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<Option<Receiver<LogLine>>>>>: Freeze,
*mut Counter<Channel<MetricSet>>: Freeze,
*mut Counter<Channel<MetricSet>>: Freeze,
*mut Counter<Channel<MetricSet>>: Freeze,
*const ArcInner<MetricsQuery> is !null: Freeze,
PhantomData<ArcInner<MetricsQuery>>: Freeze,
impl Move for DisplayInputs
impl Send for DisplayInputs
impl Unpin for DisplayInputswhere
Arc<ArcSwapAny<Arc<RunState>>>: Unpin,
*mut Counter<Channel<RunStateCmd>>: Unpin,
*mut Counter<Channel<RunStateCmd>>: Unpin,
*mut Counter<Channel<RunStateCmd>>: Unpin,
Arc<Atomic<bool>>: Unpin,
Arc<Mutex<Vec<Sender<()>>>>: Unpin,
Arc<Mutex<Option<Receiver<LogLine>>>>: Unpin,
*mut Counter<Channel<MetricSet>>: Unpin,
*mut Counter<Channel<MetricSet>>: Unpin,
*mut Counter<Channel<MetricSet>>: Unpin,
Arc<MetricsQuery>: Unpin,
impl UnsafeUnpin for DisplayInputswhere
*const ArcInner<ArcSwapAny<Arc<RunState>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<ArcSwapAny<Arc<RunState>>>>: UnsafeUnpin,
*mut Counter<Channel<RunStateCmd>>: UnsafeUnpin,
*mut Counter<Channel<RunStateCmd>>: UnsafeUnpin,
*mut Counter<Channel<RunStateCmd>>: UnsafeUnpin,
*const ArcInner<Atomic<bool>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin,
*const ArcInner<Mutex<Vec<Sender<()>>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Vec<Sender<()>>>>>: UnsafeUnpin,
*const ArcInner<Mutex<Option<Receiver<LogLine>>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Option<Receiver<LogLine>>>>>: UnsafeUnpin,
*mut Counter<Channel<MetricSet>>: UnsafeUnpin,
*mut Counter<Channel<MetricSet>>: UnsafeUnpin,
*mut Counter<Channel<MetricSet>>: UnsafeUnpin,
*const ArcInner<MetricsQuery> is !null: UnsafeUnpin,
PhantomData<ArcInner<MetricsQuery>>: UnsafeUnpin,
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