pub enum RefTransactionPhase {
Preparing,
Prepared,
Committed,
Aborted,
}Expand description
The phase a ReferenceTransactionHook is invoked for, mirroring the
state argument git passes to the reference-transaction hook
(refs.c:run_transaction_hook).
Variants§
Preparing
Before references are locked. A nonzero hook exit aborts the
transaction with in 'preparing' phase, update aborted ....
Prepared
After references are locked but before they are written. A nonzero
hook exit aborts with in 'prepared' phase, update aborted ....
Committed
After every ref change has landed. The hook’s exit status is ignored.
Aborted
When a prepared transaction is rolled back. The exit status is ignored.
Implementations§
Trait Implementations§
Source§impl Clone for RefTransactionPhase
impl Clone for RefTransactionPhase
Source§fn clone(&self) -> RefTransactionPhase
fn clone(&self) -> RefTransactionPhase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RefTransactionPhase
Source§impl Debug for RefTransactionPhase
impl Debug for RefTransactionPhase
impl Eq for RefTransactionPhase
Source§impl PartialEq for RefTransactionPhase
impl PartialEq for RefTransactionPhase
Source§fn eq(&self, other: &RefTransactionPhase) -> bool
fn eq(&self, other: &RefTransactionPhase) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RefTransactionPhase
Auto Trait Implementations§
impl Freeze for RefTransactionPhase
impl RefUnwindSafe for RefTransactionPhase
impl Send for RefTransactionPhase
impl Sync for RefTransactionPhase
impl Unpin for RefTransactionPhase
impl UnsafeUnpin for RefTransactionPhase
impl UnwindSafe for RefTransactionPhase
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