Skip to main content

WorkspaceVersionManager

Trait WorkspaceVersionManager 

Source
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§

Source

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.

Source

fn remove_workspace_version(&self, manifest_path: &Path) -> Result<()>

§Errors

Propagates manifest write errors.

Source

fn write_workspace_version( &self, manifest_path: &Path, version: &Version, ) -> Result<()>

§Errors

Propagates manifest write errors.

Implementors§