pub enum Closed {
Cleared,
LeftForRecovery(Box<Lingering>),
}Expand description
What closing a session did.
Variants§
Cleared
Written back where asked, and the session directory removed.
LeftForRecovery(Box<Lingering>)
The target application still has things of its own in the content directory, so the session was handed to recovery instead of being removed. Concept 6.2: the close is honoured, but deleting the directory underneath a running editor sends its next save nowhere this tool will ever look.
The watch comes with it. Concept 8: what a resident process is good for on this path is noticing the application’s last save when it happens, rather than leaving the question until somebody next opens a container.
Boxed because of what the watch weighs on macOS. The first time the
gate ran on a Mac, 2026-09-07, clippy refused this enum for a variant
carrying nothing beside one carrying 256 bytes, and size_of put the
numbers on it there: Lingering 256, of which Watch is 144, of which
the platform’s watcher is 128. A close is not a hot path, so the
indirection costs nothing anybody would notice.