pub trait SessionStore {
// Required methods
fn load(&self) -> Session;
fn save(&self, session: &Session) -> Result<(), FsError>;
// Provided method
fn load_with_diagnostics(&self) -> (Session, Vec<SessionDiagnostic>) { ... }
}Expand description
Service boundary: persist and restore workspace sessions. Widgets and the agent go through this trait, never the OS directly (ARCHITECTURE.md §7.4).
Required Methods§
Provided Methods§
Sourcefn load_with_diagnostics(&self) -> (Session, Vec<SessionDiagnostic>)
fn load_with_diagnostics(&self) -> (Session, Vec<SessionDiagnostic>)
Load with the degradation details needed by the application status surface. In-memory stores have no parsing boundary, so their default has no diagnostics.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".