Struct jj_lib::working_copy::LockedWorkingCopy
source · pub struct LockedWorkingCopy<'a> { /* private fields */ }
Expand description
A working copy that’s locked on disk. The lock is held until you call
finish()
or discard()
.
Implementations§
source§impl LockedWorkingCopy<'_>
impl LockedWorkingCopy<'_>
sourcepub fn old_operation_id(&self) -> &OperationId
pub fn old_operation_id(&self) -> &OperationId
The operation at the time the lock was taken
sourcepub fn old_tree_id(&self) -> &TreeId
pub fn old_tree_id(&self) -> &TreeId
The tree at the time the lock was taken
pub fn reset_watchman(&mut self) -> Result<(), SnapshotError>
pub fn snapshot( &mut self, options: SnapshotOptions<'_> ) -> Result<TreeId, SnapshotError>
pub fn check_out( &mut self, new_tree: &Tree ) -> Result<CheckoutStats, CheckoutError>
pub fn reset(&mut self, new_tree: &Tree) -> Result<(), ResetError>
pub fn sparse_patterns(&self) -> Result<&[RepoPath], TreeStateError>
pub fn set_sparse_patterns( &mut self, new_sparse_patterns: Vec<RepoPath> ) -> Result<CheckoutStats, CheckoutError>
pub fn finish(self, operation_id: OperationId) -> Result<(), TreeStateError>
pub fn discard(self)
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for LockedWorkingCopy<'a>
impl<'a> Send for LockedWorkingCopy<'a>
impl<'a> !Sync for LockedWorkingCopy<'a>
impl<'a> Unpin for LockedWorkingCopy<'a>
impl<'a> !UnwindSafe for LockedWorkingCopy<'a>
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