Enum project2::worktree::PathChange
source · pub enum PathChange {
Added,
Removed,
Updated,
AddedOrUpdated,
Loaded,
}
Variants§
Added
A filesystem entry was was created.
Removed
A filesystem entry was removed.
Updated
A filesystem entry was updated.
AddedOrUpdated
A filesystem entry was either updated or added. We don’t know whether or not it already existed, because the path had not been loaded before the event.
Loaded
A filesystem entry was found during the initial scan of the worktree.
Trait Implementations§
source§impl Clone for PathChange
impl Clone for PathChange
source§fn clone(&self) -> PathChange
fn clone(&self) -> PathChange
Returns a copy of the value. Read more
1.0.0 · 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 PathChange
impl Debug for PathChange
source§impl PartialEq<PathChange> for PathChange
impl PartialEq<PathChange> for PathChange
source§fn eq(&self, other: &PathChange) -> bool
fn eq(&self, other: &PathChange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PathChange
impl StructuralPartialEq for PathChange
Auto Trait Implementations§
impl RefUnwindSafe for PathChange
impl Send for PathChange
impl Sync for PathChange
impl Unpin for PathChange
impl UnwindSafe for PathChange
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ResetDiscriminant<T> for Twhere
T: Copy,
impl<T> ResetDiscriminant<T> for Twhere T: Copy,
§fn discriminant(&self) -> T
fn discriminant(&self) -> T
Value based on which equality for the reset will be determined.