pub struct RawStdoutChannel;Expand description
op-output written raw to the stdout the producer owns, plus a
durable session.log capture. Selected for a console-owning adapter
on a TTY (it owns the screen) AND for a piped/redirected run (so
nmbrs run | grep and > file keep working). This is the impl that
makes a console-owning stdout adapter actually print: the line is the
adapter’s, written to the surface it owns, never suppressed with the
diagnostics.
Trait Implementations§
Source§impl OutputChannel for RawStdoutChannel
impl OutputChannel for RawStdoutChannel
Source§fn op_output(&self, line: &str)
fn op_output(&self, line: &str)
op-output bucket: one adapter-rendered op line. Reaches the
terminal/file the channel owns — never around it.
Source§fn log(&self, level: LogLevel, message: &str)
fn log(&self, level: LogLevel, message: &str)
log bucket: project one diagnostic line to the live terminal
(SRD-87 §5). This is the output half only — the durable
session.log write and the fold-ring append are L1 intake, done by
observer::log_categorized before this is ever called, and the
sink_active/min_level gate (whether a line reaches the live
surface at all) stays with the observer. The default writes the
colorized line to stderr — the fd the channel owns. A sink-active
interactive run never reaches here (the sink renders from the ring);
a console-owning run never reaches here (suppressed upstream); piped
and bootstrap runs land here.Source§fn raster(&self, frame: &str)
fn raster(&self, frame: &str)
raster bucket: a fully-rendered, self-contained terminal frame
(braille / ANSI cells) — e.g. the plotter’s canvas (SRD-87 §5). The
producer owns layout (cursor controls, line endings); the channel
owns the fd. The default writes the frame bytes raw to the stdout the
channel owns — correct for a console-owning adapter (the plotter owns
the screen) and for a piped plot redirected to a file.
Auto Trait Implementations§
impl Freeze for RawStdoutChannel
impl RefUnwindSafe for RawStdoutChannel
impl Send for RawStdoutChannel
impl Sync for RawStdoutChannel
impl Unpin for RawStdoutChannel
impl UnsafeUnpin for RawStdoutChannel
impl UnwindSafe for RawStdoutChannel
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