pub struct ReplayLine {
pub kind: ReplayKind,
pub at_ms: i64,
pub text: String,
}Expand description
One replayed log entry bound for the conversation pane.
Separate from OutputLine because replay lines must be
appended silently — re-persisting every row during a
/resume would double-count the prior session’s events in
the new session’s events table. The TUI’s
AppState::apply_dispatch routes OutputLine through
push (which records) and ReplayLine through
append_silent (which does not).
at_ms preserves the original wall-clock timestamp so
rendered “age” readings stay truthful on replay — a
freshly-stamped row would lie about when the event actually
happened.
Fields§
§kind: ReplayKind§at_ms: i64§text: StringTrait Implementations§
Source§impl Clone for ReplayLine
impl Clone for ReplayLine
Source§fn clone(&self) -> ReplayLine
fn clone(&self) -> ReplayLine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReplayLine
impl Debug for ReplayLine
Source§impl PartialEq for ReplayLine
impl PartialEq for ReplayLine
impl Eq for ReplayLine
impl StructuralPartialEq for ReplayLine
Auto Trait Implementations§
impl Freeze for ReplayLine
impl RefUnwindSafe for ReplayLine
impl Send for ReplayLine
impl Sync for ReplayLine
impl Unpin for ReplayLine
impl UnsafeUnpin for ReplayLine
impl UnwindSafe for ReplayLine
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