pub trait WorkspaceVersionManager: Send + Sync {
// Required methods
fn read_workspace_version(
&self,
manifest_path: &Path,
) -> Result<Option<Version>>;
fn remove_workspace_version(&self, manifest_path: &Path) -> Result<()>;
fn write_workspace_version(
&self,
manifest_path: &Path,
version: &Version,
) -> Result<()>;
}Required Methods§
Sourcefn read_workspace_version(
&self,
manifest_path: &Path,
) -> Result<Option<Version>>
fn read_workspace_version( &self, manifest_path: &Path, ) -> Result<Option<Version>>
Returns Ok(None) if the workspace version field is not present.
§Errors
Propagates manifest read errors.