pub struct PreparedTransaction { /* private fields */ }Expand description
A durably staged transaction holding the exclusive worktree lock.
Implementations§
Source§impl PreparedTransaction
impl PreparedTransaction
Sourcepub fn commit(self) -> Result<ApplyReport, WorktreeError>
pub fn commit(self) -> Result<ApplyReport, WorktreeError>
Revalidates and commits every staged target in deterministic path order.
Sourcepub fn abort(self) -> Result<AbortReport, WorktreeError>
pub fn abort(self) -> Result<AbortReport, WorktreeError>
Discards a prepared transaction without changing a target.
Source§impl PreparedTransaction
impl PreparedTransaction
pub fn transaction_id(&self) -> &str
pub const fn preview(&self) -> &DryRunReport
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PreparedTransaction
impl RefUnwindSafe for PreparedTransaction
impl Send for PreparedTransaction
impl Sync for PreparedTransaction
impl Unpin for PreparedTransaction
impl UnsafeUnpin for PreparedTransaction
impl UnwindSafe for PreparedTransaction
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