pub enum RenderCommand {
FullRedraw(Box<Buffer>),
Update(Box<Buffer>),
Resize {
width: u16,
height: u16,
},
SetCursor {
x: Option<u16>,
y: u16,
},
RawOutput {
bytes: Vec<u8>,
},
Shutdown,
}Expand description
Commands sent to the render thread.
Variants§
FullRedraw(Box<Buffer>)
Request a full redraw with new buffer content.
Update(Box<Buffer>)
Request a diff-based update. Request a diff-based update with new buffer content.
Resize
Resize the buffers.
SetCursor
Set the cursor position and visibility.
RawOutput
Write raw bytes directly to the terminal output.
This is used for the “Fast Path” optimization: directly writing generated ANSI sequences without going through the diffing engine.
Warning: The caller is responsible for ensuring these bytes do not corrupt the terminal state or contradict the buffer state.
Shutdown
Shutdown the render thread.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RenderCommand
impl RefUnwindSafe for RenderCommand
impl Send for RenderCommand
impl Sync for RenderCommand
impl Unpin for RenderCommand
impl UnwindSafe for RenderCommand
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