pub struct SwarmViewState {
pub active: bool,
pub task: String,
pub subtasks: Vec<SubTaskInfo>,
pub current_stage: usize,
pub total_stages: usize,
pub stats: Option<SwarmStats>,
pub error: Option<String>,
pub scroll: usize,
pub complete: bool,
}Expand description
State for the swarm view
Fields§
§active: boolWhether swarm mode is active
task: StringThe main task being executed
subtasks: Vec<SubTaskInfo>All subtasks
current_stage: usizeCurrent stage (0-indexed)
total_stages: usizeTotal stages
stats: Option<SwarmStats>Stats from execution
error: Option<String>Any error message
scroll: usizeScroll position in subtask list
complete: boolWhether execution is complete
Implementations§
Source§impl SwarmViewState
impl SwarmViewState
pub fn new() -> Self
Sourcepub fn handle_event(&mut self, event: SwarmEvent)
pub fn handle_event(&mut self, event: SwarmEvent)
Handle a swarm event
Trait Implementations§
Source§impl Debug for SwarmViewState
impl Debug for SwarmViewState
Source§impl Default for SwarmViewState
impl Default for SwarmViewState
Source§fn default() -> SwarmViewState
fn default() -> SwarmViewState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SwarmViewState
impl RefUnwindSafe for SwarmViewState
impl Send for SwarmViewState
impl Sync for SwarmViewState
impl Unpin for SwarmViewState
impl UnwindSafe for SwarmViewState
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> 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