Struct branchless::core::eventlog::EventTransactionId [−][src]
The ID associated with the transactions that created an event.
A “event transaction” is a group of logically-related events. For example,
during a rebase operation, all of the rebased commits have different
CommitEvent
s, but should belong to the same transaction. This improves the
experience for git undo
, since the user probably wants to see or undo all
of the logically-related events at once, rather than individually.
Note that some logically-related events may not be included together in the
same transaction. For example, if a rebase is interrupted due to a merge
conflict, then the commits applied due to git rebase
and the commits
applied due to git rebase --continue
may not share the same transaction.
In this sense, a transaction is “best-effort”.
Unlike in a database, there is no specific guarantee that an event transaction is an atomic unit of work.
Trait Implementations
impl Clone for EventTransactionId
[src]
fn clone(&self) -> EventTransactionId
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for EventTransactionId
[src]
impl Debug for EventTransactionId
[src]
impl FromStr for EventTransactionId
[src]
type Err = <isize as FromStr>::Err
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl PartialEq<EventTransactionId> for EventTransactionId
[src]
fn eq(&self, other: &EventTransactionId) -> bool
[src]
fn ne(&self, other: &EventTransactionId) -> bool
[src]
impl StructuralPartialEq for EventTransactionId
[src]
impl ToString for EventTransactionId
[src]
Auto Trait Implementations
impl RefUnwindSafe for EventTransactionId
impl Send for EventTransactionId
impl Sync for EventTransactionId
impl Unpin for EventTransactionId
impl UnwindSafe for EventTransactionId
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> With for T
pub fn wrap_with<U, F>(self, f: F) -> U where
F: FnOnce(Self) -> U,
F: FnOnce(Self) -> U,
pub fn with<F>(self, f: F) -> Self where
F: FnOnce(&mut Self),
F: FnOnce(&mut Self),
pub fn try_with<E, F>(self, f: F) -> Result<Self, E> where
F: FnOnce(&mut Self) -> Result<(), E>,
F: FnOnce(&mut Self) -> Result<(), E>,
pub fn with_if<F>(self, condition: bool, f: F) -> Self where
F: FnOnce(&mut Self),
F: FnOnce(&mut Self),