Enum branchless::eventlog::Event [−][src]
An event that occurred to one of the commits in the repository.
Variants
Indicates that the commit was rewritten.
Examples of rewriting include rebases and amended commits.
We typically want to mark the new version of the commit as visible and the old version of the commit as hidden.
Fields of RewriteEvent
Indicates that a reference was updated.
The most important reference we track is HEAD. In principle, we can also
track branch moves in this way, but Git doesn’t support the appropriate
hook until v2.29 (reference-transaction
).
Fields of RefUpdateEvent
timestamp: f64
The timestamp of the event.
ref_name: String
The full name of the reference that was updated.
For example, HEAD
or refs/heads/master
.
old_ref: Option<String>
The old referent.
May be an OID (in the case of a direct reference) or another reference name (in the case of a symbolic reference).
new_ref: Option<String>
The updated referent.
This may not be different from the old referent.
May be an OID (in the case of a direct reference) or another reference name (in the case of a symbolic reference).
message: Option<String>
A message associated with the rewrite, if any.
Indicate that the user made a commit.
User commits should be marked as visible.
Indicates that a commit was explicitly hidden by the user.
If the commit in question was not already visible, then this has no practical effect.
Fields of HideEvent
Indicates that a commit was explicitly un-hidden by the user.
If the commit in question was not already hidden, then this has no practical effect.
Fields of UnhideEvent
Implementations
impl Event
[src]
pub fn timestamp(&self) -> SystemTime
[src]
Get the timestamp associated with this event.
Trait Implementations
impl Clone for Event
[src]
impl Debug for Event
[src]
impl PartialEq<Event> for Event
[src]
impl StructuralPartialEq for Event
[src]
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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),