pub struct ActivityFeed { /* private fields */ }Expand description
Activity feed component that displays recent tool activities
The feed shows a compact list of recent activities with visual indicators for in-progress items.
Implementations§
Source§impl ActivityFeed
impl ActivityFeed
Sourcepub fn add(&mut self, message: String, in_progress: bool)
pub fn add(&mut self, message: String, in_progress: bool)
Add a new activity to the feed
Activities are always added to the top of the list. Multiple in-progress activities can exist simultaneously.
Sourcepub fn complete_current(&mut self)
pub fn complete_current(&mut self)
Mark the most recent in-progress activity as complete
Since activities are added at the beginning, we mark the first in-progress activity (most recent) as complete.
Sourcepub fn complete_all(&mut self)
pub fn complete_all(&mut self)
Mark all in-progress activities as complete
Sourcepub fn has_in_progress(&self) -> bool
pub fn has_in_progress(&self) -> bool
Check if there are any in-progress activities
Trait Implementations§
Source§impl Clone for ActivityFeed
impl Clone for ActivityFeed
Source§fn clone(&self) -> ActivityFeed
fn clone(&self) -> ActivityFeed
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActivityFeed
impl Debug for ActivityFeed
Auto Trait Implementations§
impl Freeze for ActivityFeed
impl RefUnwindSafe for ActivityFeed
impl Send for ActivityFeed
impl Sync for ActivityFeed
impl Unpin for ActivityFeed
impl UnsafeUnpin for ActivityFeed
impl UnwindSafe for ActivityFeed
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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