pub struct CopyBackend { /* private fields */ }Expand description
A workspace backend that extracts epoch trees via git archive.
Each workspace is a plain copy of the repository tree at the base epoch.
Changes to the workspace are detected by walking the directory and
comparing against the base epoch via git diff.
§Thread safety
CopyBackend is Send + Sync. All state lives on the filesystem.
Implementations§
Trait Implementations§
Source§impl WorkspaceBackend for CopyBackend
impl WorkspaceBackend for CopyBackend
Source§type Error = CopyBackendError
type Error = CopyBackendError
The error type returned by backend operations.
Source§fn create(
&self,
name: &WorkspaceId,
epoch: &EpochId,
) -> Result<WorkspaceInfo, Self::Error>
fn create( &self, name: &WorkspaceId, epoch: &EpochId, ) -> Result<WorkspaceInfo, Self::Error>
Create a new workspace. Read more
Source§fn destroy(&self, name: &WorkspaceId) -> Result<(), Self::Error>
fn destroy(&self, name: &WorkspaceId) -> Result<(), Self::Error>
Destroy a workspace. Read more
Source§fn status(&self, name: &WorkspaceId) -> Result<WorkspaceStatus, Self::Error>
fn status(&self, name: &WorkspaceId) -> Result<WorkspaceStatus, Self::Error>
Get the current status of a workspace. Read more
Source§fn snapshot(&self, name: &WorkspaceId) -> Result<SnapshotResult, Self::Error>
fn snapshot(&self, name: &WorkspaceId) -> Result<SnapshotResult, Self::Error>
Capture all changes in the workspace. Read more
Source§fn workspace_path(&self, name: &WorkspaceId) -> PathBuf
fn workspace_path(&self, name: &WorkspaceId) -> PathBuf
Get the absolute path to a workspace. Read more
Auto Trait Implementations§
impl Freeze for CopyBackend
impl RefUnwindSafe for CopyBackend
impl Send for CopyBackend
impl Sync for CopyBackend
impl Unpin for CopyBackend
impl UnsafeUnpin for CopyBackend
impl UnwindSafe for CopyBackend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more