studiole-command 0.4.1

A simple command execution framework with event subscription and progress tracking.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::prelude::*;

/// Snapshot of command queue progress.
#[derive(Clone, Debug, Default)]
pub struct CommandProgress {
    /// Total number of commands queued
    pub total: usize,
    /// Number of commands currently queued
    pub queued: usize,
    /// Number of commands currently executing
    pub executing: usize,
    /// Number of commands completed
    pub completed: usize,
}