pub struct CapturedSink { /* private fields */ }Expand description
Buffering sink that accumulates formatted entries for an
interactive consumer to drain. The TUI installs one for the
alt-screen lifetime so lsm_warn! / lsm_error! / lsm_debug!
surface in the live-preview warnings panel instead of painting
over the rendered frame.
Captured format is [<tag>] <msg> — the surrounding UI prefixes
each line with its own marker (e.g. ⚠), so the linesmith
prefix and colon would be redundant noise.
Implementations§
Trait Implementations§
Source§impl Debug for CapturedSink
impl Debug for CapturedSink
Source§impl Default for CapturedSink
impl Default for CapturedSink
Source§fn default() -> CapturedSink
fn default() -> CapturedSink
Returns the “default value” for a type. Read more
Source§impl LogSink for CapturedSink
impl LogSink for CapturedSink
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 CapturedSink
impl RefUnwindSafe for CapturedSink
impl Send for CapturedSink
impl Sync for CapturedSink
impl Unpin for CapturedSink
impl UnsafeUnpin for CapturedSink
impl UnwindSafe for CapturedSink
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