morpheus_bootloader::tui::distro_downloader

Module state

Source
Expand description

State management for Distro Downloader

Defines state machines for UI navigation and download progress. Pure Rust with no UEFI dependencies - fully unit testable.

§State Machines

§UI State Machine

┌─────────┐  select  ┌─────────┐  confirm  ┌─────────────┐
│ Browse  │─────────▶│ Confirm │──────────▶│ Downloading │
└─────────┘          └─────────┘           └─────────────┘
     ▲                    │                      │
     │     cancel         │                      │ complete/fail
     └────────────────────┴──────────────────────┘

§Download State Machine

┌──────┐  start  ┌─────────────┐  done   ┌──────────┐
│ Idle │────────▶│ Downloading │────────▶│ Complete │
└──────┘         └─────────────┘         └──────────┘
                       │
                       │ error
                       ▼
                  ┌────────┐
                  │ Failed │
                  └────────┘

Structs§

Enums§