appcui 0.4.8

A feature-rich and cross-platform TUI/CUI framework for Rust, enabling modern terminal-based applications on Windows, Linux, and macOS. Includes built-in UI components like buttons, menus, list views, tree views, checkboxes, and more. Perfect for building fast and interactive CLI tools and text-based interfaces.
Documentation
#[derive(Copy,Clone,Eq,PartialEq,Debug)]
#[repr(u8)]
pub(crate) enum Command {
    None,
    Start(u32),
    Stop,
    Pause,
    Resume,
    SetInterval(u32),
}

impl Command {
    pub(super) fn iterval(&self) -> Option<u32> {
        match self {
            Command::Start(interval) => Some(*interval),
            Command::SetInterval(interval) => Some(*interval),
            _ => None,
        }
    }
}