pub enum ScrollbackEvent {
Output(Vec<u8>),
WindowSize(u16, u16),
}Expand description
A scrollback event — either terminal output or a window-size change.
Storing events instead of raw bytes ensures that eviction never splits an escape sequence and that resize history is preserved for replay.
Variants§
Output(Vec<u8>)
Raw terminal output bytes.
WindowSize(u16, u16)
PTY window size changed (rows, cols).
Implementations§
Trait Implementations§
Source§impl Clone for ScrollbackEvent
impl Clone for ScrollbackEvent
Source§fn clone(&self) -> ScrollbackEvent
fn clone(&self) -> ScrollbackEvent
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 ScrollbackEvent
impl Debug for ScrollbackEvent
Source§impl PartialEq for ScrollbackEvent
impl PartialEq for ScrollbackEvent
impl StructuralPartialEq for ScrollbackEvent
Auto Trait Implementations§
impl Freeze for ScrollbackEvent
impl RefUnwindSafe for ScrollbackEvent
impl Send for ScrollbackEvent
impl Sync for ScrollbackEvent
impl Unpin for ScrollbackEvent
impl UnwindSafe for ScrollbackEvent
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