Struct ostree::TransactionGuard [−][src]
pub struct TransactionGuard<'a> { /* fields omitted */ }
Expand description
An open transaction in the repository.
This will automatically invoke [ostree::Repo::abort_transaction
] when the value is dropped.
Implementations
pub fn commit<P: IsA<Cancellable>>(
self,
cancellable: Option<&P>
) -> Result<RepoTransactionStats, Error>
pub fn commit<P: IsA<Cancellable>>(
self,
cancellable: Option<&P>
) -> Result<RepoTransactionStats, Error>
Commit this transaction.