#[non_exhaustive]pub struct RepoChange {
pub snapshot: RepoSnapshot,
pub events: Vec<RepoEvent>,
}Expand description
A batch of changes observed in one settled re-query: the new full
RepoSnapshot (ready to render a prompt/status line) plus the typed
RepoEvents that produced it. A RepoWatcher only
yields a RepoChange when at least one event fired.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.snapshot: RepoSnapshotThe repository state after the change.
events: Vec<RepoEvent>The typed deltas from the previous state (never empty).
Trait Implementations§
Source§impl Clone for RepoChange
impl Clone for RepoChange
Source§fn clone(&self) -> RepoChange
fn clone(&self) -> RepoChange
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 moreSource§impl Debug for RepoChange
impl Debug for RepoChange
impl Eq for RepoChange
Source§impl PartialEq for RepoChange
impl PartialEq for RepoChange
Source§fn eq(&self, other: &RepoChange) -> bool
fn eq(&self, other: &RepoChange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RepoChange
Auto Trait Implementations§
impl Freeze for RepoChange
impl RefUnwindSafe for RepoChange
impl Send for RepoChange
impl Sync for RepoChange
impl Unpin for RepoChange
impl UnsafeUnpin for RepoChange
impl UnwindSafe for RepoChange
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