Skip to main content

Mountain/IPC/WindServiceHandlers/
Model.rs

1
2//! # Text Model registry + TextFile handlers
3//!
4//! Two related responsibilities sharing the same dispatcher
5//! family:
6//!
7//! - `Model*` - Monaco-side text model registry. Mountain owns
8//!   `ApplicationState.Feature.Documents`; Wind reads/writes through these
9//!   handlers so the document state survives a webview reload.
10//! - `Textfile*` - disk-only paths that bypass the registry. Used for tooling
11//!   reads (settings, manifests) and for the actual save round-trip.
12//!
13//! Layout (one export per file, file name = identity):
14//! - `ModelOpen::ModelOpen`, `ModelClose::ModelClose`, `ModelGet::ModelGet`,
15//!   `ModelGetAll::ModelGetAll`, `ModelUpdateContent::ModelUpdateContent`.
16//! - `TextfileRead::TextfileRead`, `TextfileWrite::TextfileWrite`,
17//!   `TextfileSave::TextfileSave`.
18
19pub mod ModelClose;
20
21pub mod ModelGet;
22
23pub mod ModelGetAll;
24
25pub mod ModelOpen;
26
27pub mod ModelUpdateContent;
28
29pub mod TextfileRead;
30
31pub mod TextfileSave;
32
33pub mod TextfileWrite;