pub struct StderrSink;Expand description
Default sink. Writes linesmith [<tag>]: <msg> lines to
io::stderr().lock() and drops the write on a closed pipe /
full disk: the statusline has no recovery path, and panicking
here would nuke an otherwise-good render.
Trait Implementations§
Source§impl Debug for StderrSink
impl Debug for StderrSink
Source§impl Default for StderrSink
impl Default for StderrSink
Source§fn default() -> StderrSink
fn default() -> StderrSink
Returns the “default value” for a type. Read more
Source§impl LogSink for StderrSink
impl LogSink for StderrSink
Source§fn emit(&self, lvl: Level, msg: &str)
fn emit(&self, lvl: Level, msg: &str)
Emit a level-gated diagnostic. The caller has already
confirmed the level is enabled — the sink writes
unconditionally. Implementations defensively no-op on
Level::Off rather than relying on the caller; the macros
never pass Off, but emit() is pub.Source§fn emit_error(&self, msg: &str)
fn emit_error(&self, msg: &str)
Emit a structural-failure diagnostic. Always fires regardless
of the configured level —
LINESMITH_LOG=off users still
see “the statusline broke” because there’s no other channel.Auto Trait Implementations§
impl Freeze for StderrSink
impl RefUnwindSafe for StderrSink
impl Send for StderrSink
impl Sync for StderrSink
impl Unpin for StderrSink
impl UnsafeUnpin for StderrSink
impl UnwindSafe for StderrSink
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