pub struct CapturedEntry {
pub at: Instant,
pub text: String,
}Expand description
One captured emission, tagged with the Instant it landed at the
sink. Consumers that display the buffer over time (the TUI warnings
panel once v0.2 background plugins can emit between draws) compute
relative age against Instant::now() at render time; the monotonic
clock means a host suspending mid-session doesn’t show negative
ages or jump backwards.
text carries the existing compact form ([<tag>] <msg>); the age
is metadata, not embedded in the text, so non-temporal renderers
(boot-failure stderr flush) can ignore the timestamp entirely.
Fields§
§at: Instant§text: StringTrait Implementations§
Source§impl Clone for CapturedEntry
impl Clone for CapturedEntry
Source§fn clone(&self) -> CapturedEntry
fn clone(&self) -> CapturedEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CapturedEntry
impl RefUnwindSafe for CapturedEntry
impl Send for CapturedEntry
impl Sync for CapturedEntry
impl Unpin for CapturedEntry
impl UnsafeUnpin for CapturedEntry
impl UnwindSafe for CapturedEntry
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