pub struct ClaudeSpinner { /* private fields */ }Implementations§
Source§impl ClaudeSpinner
impl ClaudeSpinner
pub fn new(story_id: &str) -> Self
Sourcepub fn new_with_story_progress(story_id: &str, current: u32, total: u32) -> Self
pub fn new_with_story_progress(story_id: &str, current: u32, total: u32) -> Self
Create a new spinner for a story with iteration context
Display format: [US-001 2/5] | activity [HH:MM:SS]
Sourcepub fn new_for_review(current: u32, total: u32) -> Self
pub fn new_for_review(current: u32, total: u32) -> Self
Create a new spinner for review with iteration context
Display format: [Review 1/3] | activity [HH:MM:SS]
Sourcepub fn new_for_correct(current: u32, total: u32) -> Self
pub fn new_for_correct(current: u32, total: u32) -> Self
Create a new spinner for correction with iteration context
Display format: [Correct 1/3] | activity [HH:MM:SS]
pub fn new_for_spec() -> Self
Sourcepub fn new_for_commit() -> Self
pub fn new_for_commit() -> Self
Create a new spinner for commit
Display format: [Commit] | activity [HH:MM:SS]
pub fn update(&self, activity: &str)
Sourcepub fn clear(&self)
pub fn clear(&self)
Clear the spinner line without printing a final message. Used to ensure no visual artifacts remain before printing completion output.
pub fn finish_success(&mut self, duration_secs: u64)
pub fn finish_error(&mut self, error: &str)
pub fn finish_with_message(&mut self, message: &str)
pub fn elapsed_secs(&self) -> u64
Trait Implementations§
Source§impl AgentDisplay for ClaudeSpinner
impl AgentDisplay for ClaudeSpinner
Source§fn start(&mut self)
fn start(&mut self)
Start the display for an agent operation.
Called when the agent begins its work.
Source§fn update(&mut self, activity: &str)
fn update(&mut self, activity: &str)
Update the display with current activity information. Read more
Source§fn finish_success(&mut self)
fn finish_success(&mut self)
Mark the operation as successfully completed.
Stops any timers and displays a success message.
Source§fn finish_error(&mut self, error: &str)
fn finish_error(&mut self, error: &str)
Mark the operation as failed.
Stops any timers and displays an error message. Read more
Source§fn finish_with_outcome(&mut self, outcome: Outcome)
fn finish_with_outcome(&mut self, outcome: Outcome)
Mark the operation as completed with a specific outcome.
Allows for more detailed completion information than simple success/failure. Read more
Source§fn agent_name(&self) -> &str
fn agent_name(&self) -> &str
Get the agent’s display name
Source§fn elapsed_secs(&self) -> u64
fn elapsed_secs(&self) -> u64
Get the elapsed time in seconds since the operation started
Source§fn iteration_info(&self) -> Option<&IterationInfo>
fn iteration_info(&self) -> Option<&IterationInfo>
Get the current iteration information, if any
Source§fn set_iteration_info(&mut self, info: IterationInfo)
fn set_iteration_info(&mut self, info: IterationInfo)
Set the iteration information for progress context
Auto Trait Implementations§
impl Freeze for ClaudeSpinner
impl !RefUnwindSafe for ClaudeSpinner
impl Send for ClaudeSpinner
impl Sync for ClaudeSpinner
impl Unpin for ClaudeSpinner
impl !UnwindSafe for ClaudeSpinner
Blanket Implementations§
Source§impl<T> AgentDisplayExt for Twhere
T: AgentDisplay,
impl<T> AgentDisplayExt for Twhere
T: AgentDisplay,
Source§fn complete_success(&mut self)
fn complete_success(&mut self)
Finish with success (type-erased version that can be called on &mut dyn AgentDisplay)
Source§fn complete_error(&mut self, error: &str)
fn complete_error(&mut self, error: &str)
Finish with error (type-erased version)
Source§fn complete_with_outcome(&mut self, outcome: Outcome)
fn complete_with_outcome(&mut self, outcome: Outcome)
Finish with outcome (type-erased version)
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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 more