pub struct CrosstermEngine<W: Write> { /* private fields */ }Expand description
Terminal handing backend implemented with the crossterm crate
Implementations§
Trait Implementations§
Source§impl<W: Write> Engine for CrosstermEngine<W>
impl<W: Write> Engine for CrosstermEngine<W>
Source§fn get_command_buffer(&self) -> Self::Buffer
fn get_command_buffer(&self) -> Self::Buffer
Creates a new instanse of the
CommandBuffer implementationSource§fn render(&mut self, render_commands: &Self::Buffer) -> Result<()>
fn render(&mut self, render_commands: &Self::Buffer) -> Result<()>
Renders content to the terminal using the specified rendering commands
Source§fn finish_rendering(&mut self) -> Result<()>
fn finish_rendering(&mut self) -> Result<()>
This is called when a prompt is submitted and needs to be rendered in its final state.
Auto Trait Implementations§
impl<W> Freeze for CrosstermEngine<W>where
W: Freeze,
impl<W> RefUnwindSafe for CrosstermEngine<W>where
W: RefUnwindSafe,
impl<W> Send for CrosstermEngine<W>where
W: Send,
impl<W> Sync for CrosstermEngine<W>where
W: Sync,
impl<W> Unpin for CrosstermEngine<W>where
W: Unpin,
impl<W> UnwindSafe for CrosstermEngine<W>where
W: UnwindSafe,
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