pub struct GenerationIndicator { /* private fields */ }Expand description
Progress indicator with Claude Code style display
Implementations§
Source§impl GenerationIndicator
impl GenerationIndicator
Sourcepub fn with_action(action: &str) -> Self
pub fn with_action(action: &str) -> Self
Create with a specific initial action
Sourcepub async fn update_tokens(&self, input: u64, output: u64)
pub async fn update_tokens(&self, input: u64, output: u64)
Update token counts
Sourcepub async fn set_action(&self, action: &str)
pub async fn set_action(&self, action: &str)
Set the current action (e.g., “Analyzing”, “Reading files”)
Sourcepub async fn clear_focus(&self)
pub async fn clear_focus(&self)
Clear the focus text
Sourcepub fn state(&self) -> Arc<ProgressState>
pub fn state(&self) -> Arc<ProgressState>
Get the shared state for external updates
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GenerationIndicator
impl !RefUnwindSafe for GenerationIndicator
impl Send for GenerationIndicator
impl Sync for GenerationIndicator
impl Unpin for GenerationIndicator
impl !UnwindSafe for GenerationIndicator
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.