pub enum TaskProgressMsg {
Tick,
Start,
Confirm,
Cancel,
RunStep(usize),
StepCompleted(usize, StepResult),
StartTask(usize),
CompleteTask(usize, StepResult),
CloseModal,
Quit,
Resize(u16, u16),
}Expand description
Message type for task progress view.
Variants§
Tick
Advance spinner animation and poll for worker results.
Start
Start the execution process.
Confirm
User confirmed (when confirmation modal is shown).
Cancel
User cancelled/declined.
RunStep(usize)
Run a specific step by index.
StepCompleted(usize, StepResult)
A step completed with result (internal).
StartTask(usize)
Start a task manually (for external control mode).
CompleteTask(usize, StepResult)
Complete a task with result (for external control mode).
CloseModal
Close error modal.
Quit
User pressed quit/cancel key.
Resize(u16, u16)
Terminal resized.
Trait Implementations§
Source§impl Clone for TaskProgressMsg
impl Clone for TaskProgressMsg
Source§fn clone(&self) -> TaskProgressMsg
fn clone(&self) -> TaskProgressMsg
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 moreAuto Trait Implementations§
impl Freeze for TaskProgressMsg
impl RefUnwindSafe for TaskProgressMsg
impl Send for TaskProgressMsg
impl Sync for TaskProgressMsg
impl Unpin for TaskProgressMsg
impl UnwindSafe for TaskProgressMsg
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