tui-lipan 0.1.0

Opinionated, component-based TUI framework for Rust - declarative components, reconciliation, layout engine, focus, overlays, and rich widgets on top of ratatui.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::cell::RefCell;
use std::path::PathBuf;
use std::rc::Rc;

use super::UiSnapshot;
use super::options::UiSnapshotFileFormat;

/// Queued live-app UI snapshot delivery request.
#[derive(Clone)]
pub(crate) enum UiSnapshotRequest {
    Write {
        path: PathBuf,
        format: UiSnapshotFileFormat,
    },
    Deliver(Rc<RefCell<Option<UiSnapshot>>>),
}