pub struct PhaseOutcomeReadout;Expand description
SRD-76 — single phase-end readout. Reads the structured
outcome (status, duration, error list, resume cursor)
from the ReadoutContext and renders LOD-appropriate
detail. Replaces the legacy phase_outcome readout that
always assumed success.
Naming: the readout struct is PhaseOutcomeReadout
rather than PhaseOutcome to disambiguate from
crate::phase_outcome::PhaseOutcome (the data type).
The string registry key is "phase_outcome".
Trait Implementations§
Source§impl Readout for PhaseOutcomeReadout
impl Readout for PhaseOutcomeReadout
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Stable, lower-snake-case identifier. Workloads
reference readouts by this name.
Source§fn accepts(&self) -> &'static [SubjectKind]
fn accepts(&self) -> &'static [SubjectKind]
Subject kinds this readout is willing to render
against. The binder validates at bake-time that
every event slot’s subject kind is in this list,
so a workload binding
phase_outcome to
on_session_end fails loudly rather than rendering
silent zeros. Required: every readout declares
what kinds it works against. No default — silent
fallback to [Phase] would defeat the safety net
the validation layer is built on.Source§fn render(
&self,
ctx: &dyn ReadoutContext,
lod: Lod,
mode: ContentMode,
_opts: &ReadoutOptions,
out: &mut dyn ReadoutBuf,
) -> usize
fn render( &self, ctx: &dyn ReadoutContext, lod: Lod, mode: ContentMode, _opts: &ReadoutOptions, out: &mut dyn ReadoutBuf, ) -> usize
Render this readout at the given LOD and content
mode, drawing data from
ctx, writing into out.
Returns the rendered byte width so the caller can do
alignment without a second measurement pass. Read moreAuto Trait Implementations§
impl Freeze for PhaseOutcomeReadout
impl RefUnwindSafe for PhaseOutcomeReadout
impl Send for PhaseOutcomeReadout
impl Sync for PhaseOutcomeReadout
impl Unpin for PhaseOutcomeReadout
impl UnsafeUnpin for PhaseOutcomeReadout
impl UnwindSafe for PhaseOutcomeReadout
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