pub struct InlineRenderer { /* private fields */ }Implementations§
Source§impl InlineRenderer
impl InlineRenderer
pub fn stdout(show_reasoning: bool) -> Result<Self>
pub fn stdout_with_limits( show_reasoning: bool, limits: RenderLimits, ) -> Result<Self>
pub fn new( writer: impl Write + Send + 'static, show_reasoning: bool, color: bool, ) -> Self
pub fn new_with_limits( writer: impl Write + Send + 'static, show_reasoning: bool, color: bool, limits: RenderLimits, ) -> Self
pub fn begin_turn(&self) -> Result<()>
pub fn render_user(&self, message: &str) -> Result<()>
Sourcepub fn render_revert_plan(&self, lines: &[RevertLine]) -> Result<()>
pub fn render_revert_plan(&self, lines: &[RevertLine]) -> Result<()>
Lists what a rewind would do to each file, one line per path, using the same colors as a patch block so the plan reads at a glance.
pub fn render_status(&self, message: &str) -> Result<()>
Sourcepub fn begin_transient(&self, label: &str) -> Result<()>
pub fn begin_transient(&self, label: &str) -> Result<()>
Shows a labelled spinner in the transient region while something is being awaited. Reuses the generation spinner, so nothing is drawn when stdout is not a terminal and nothing reaches the scrollback either way.
pub fn end_transient(&self) -> Result<()>
pub fn render_resumed_history(&self, items: &[ConversationItem]) -> Result<()>
pub fn event_sink(&self) -> EventSink
pub fn toggle_reasoning(&self) -> Result<bool>
Trait Implementations§
Source§impl Clone for InlineRenderer
impl Clone for InlineRenderer
Source§fn clone(&self) -> InlineRenderer
fn clone(&self) -> InlineRenderer
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 InlineRenderer
impl RefUnwindSafe for InlineRenderer
impl Send for InlineRenderer
impl Sync for InlineRenderer
impl Unpin for InlineRenderer
impl UnsafeUnpin for InlineRenderer
impl UnwindSafe for InlineRenderer
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