Struct ostree::TransactionGuard
source · [−]pub struct TransactionGuard<'a> { /* private fields */ }
Expand description
An open transaction in the repository.
This will automatically invoke [ostree::Repo::abort_transaction
] when the value is dropped.
Implementations
sourceimpl<'a> TransactionGuard<'a>
impl<'a> TransactionGuard<'a>
sourcepub 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.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for TransactionGuard<'a>
impl<'a> !Send for TransactionGuard<'a>
impl<'a> !Sync for TransactionGuard<'a>
impl<'a> Unpin for TransactionGuard<'a>
impl<'a> UnwindSafe for TransactionGuard<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more