pub struct InstalledTxn { /* private fields */ }Implementations§
Source§impl InstalledTxn
impl InstalledTxn
pub fn new(project_root: PathBuf) -> Result<Self>
Sourcepub fn append_gitignore(&mut self, project_root: &Path) -> SetupResult<()>
pub fn append_gitignore(&mut self, project_root: &Path) -> SetupResult<()>
Append the AtomCode local-scope marker to .gitignore. Idempotent —
returns without writing if the marker (any of 4 syntactic variants) is
already present. Otherwise backs up existing file (if any) and appends.
Sourcepub fn rollback(self) -> RollbackOutcome
pub fn rollback(self) -> RollbackOutcome
Roll back all writes in LIFO order. Returns Clean on full success,
Partial otherwise. Consumes self — sets finalized=true so Drop
is a no-op.
Sourcepub fn commit(self) -> InstalledSummary
pub fn commit(self) -> InstalledSummary
Commit the transaction: marks finalized, best-effort cleans backup_dir,
and mem::forgets self to prevent Drop’s rollback. The returned
summary is currently empty — T24 (orchestrator) populates it.
Trait Implementations§
Source§impl Debug for InstalledTxn
impl Debug for InstalledTxn
Source§impl Drop for InstalledTxn
impl Drop for InstalledTxn
Auto Trait Implementations§
impl Freeze for InstalledTxn
impl RefUnwindSafe for InstalledTxn
impl Send for InstalledTxn
impl Sync for InstalledTxn
impl Unpin for InstalledTxn
impl UnsafeUnpin for InstalledTxn
impl UnwindSafe for InstalledTxn
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more