Expand description
The persistent-storage / filesystem seam — the ONE platform exception in
the engine-native UI. Settings, dock layout, and model documents all use the
same ModelStore::read / ModelStore::write API. Only its backend differs:
desktop writes files; the browser mirrors an ASYNC, swappable
[mirror_store::StoreBackend] — IndexedDB today, a remote server next — into
memory and writes behind it, which is what keeps this whole API synchronous.
Structs§
- Browser
Entry - One entry exposed to the common in-application filesystem browser.
- Browser
Place - A quick-access destination for the explorer’s left sidebar.
- Imported
File - A file selected outside the model store. Keeping bytes verbatim allows the same upload channel to carry binary STL as well as text CAD formats.
Enums§
- Place
Kind - The category of a
BrowserPlace, so the widget owns the icon styling.
Constants§
- DOCK_
LAYOUT_ KEY - FEATURE_
PALETTE_ DISPLAY_ KEY - MODEL_
EXT - The document extension for a model recipe (
<name>.BREP.json). - PINNED_
KEY - Pinned explorer locations (a JSON array of navigable location strings),
persisted through the ordinary
read/writeCRUD like the other reserved keys so the sidebar needs no dedicated trait surface. - RECOVERY_
KEY - The AUTOSAVE blob: every open document that had unsaved changes the last
time the shell’s autosave fired (see
crate::recovery), so a crash, a closed tab or a reload can offer that work back. Written debounced, removed the moment nothing is dirty; never listed as a document. - SESSION_
KEY - The open-document SESSION (which models are in tabs and which one is active
— see
crate::document), so a reload comes back to the desk you left. - SETTINGS_
KEY - Reserved persistent-object names used internally for application state.
Traits§
- Model
Store - The application’s single persistent-storage abstraction. Reserved application
keys and named model documents are read and written through the same methods.
All methods take
&self; mutable backend state lives behind interior mutability.
Functions§
- default_
model_ store - native_
store_ at - Construct the platform’s one persistent store for application state and models.
A native file store rooted at
dir— the seam an automation host uses to keep a session’s settings, autosave and recovery blob out of the user’s own config directory (spec §8).