ForegroundState
Module: log::ForegroundState
Section titled “Module: log::ForegroundState”Contents
Section titled “Contents”Functions
is_stderr- Whether the foreground currently targets stderr (used to gate ANSIwrite- Write one buffer to the active destination, resolved lazily so a
firma_run::log::ForegroundState::is_stderr
Section titled “firma_run::log::ForegroundState::is_stderr”Function
Whether the foreground currently targets stderr (used to gate ANSI color so redirected file output stays plain).
fn is_stderr(self: &Self) -> boolfirma_run::log::ForegroundState::write
Section titled “firma_run::log::ForegroundState::write”Function
Write one buffer to the active destination, resolved lazily so a concurrent redirect/restore takes effect on the next event.
Errors
Section titled “Errors”Returns an error if the destination lock is poisoned or the underlying sink write fails.
fn write(self: &Self, buf: &[u8]) -> io::Result<usize>