pub trait InstallRecorder {
// Required methods
fn record_intents(
&mut self,
relative_paths: &[String],
) -> Result<(), WorktreeCopyError>;
fn record_creations(
&mut self,
entries: &[InstalledPath],
) -> Result<(), WorktreeCopyError>;
}Expand description
What: The durable record of an installation in progress. Why: The installation reports every claim before it creates a path and every proven creation after, so the journal slice can persist both without this module knowing the file format.
In TS you’d write (pseudocode):
recordIntents({ state, relativePaths }); recordCreations({ state, entries });Required Methods§
Sourcefn record_intents(
&mut self,
relative_paths: &[String],
) -> Result<(), WorktreeCopyError>
fn record_intents( &mut self, relative_paths: &[String], ) -> Result<(), WorktreeCopyError>
Records the absent paths one batch is about to create, before any of them exists.
Sourcefn record_creations(
&mut self,
entries: &[InstalledPath],
) -> Result<(), WorktreeCopyError>
fn record_creations( &mut self, entries: &[InstalledPath], ) -> Result<(), WorktreeCopyError>
Records the identities of the paths one batch created.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".