pub enum Event<'old, 'new> {
Addition {
entry_mode: EntryMode,
id: Id<'new>,
},
Deletion {
entry_mode: EntryMode,
id: Id<'old>,
},
Modification {
previous_entry_mode: EntryMode,
previous_id: Id<'old>,
entry_mode: EntryMode,
id: Id<'new>,
},
}
Expand description
An event emitted when finding differences between two trees.
Variants
Addition
Fields
entry_mode: EntryMode
The mode of the added entry.
id: Id<'new>
The object id of the added entry.
An entry was added, like the addition of a file or directory.
Deletion
Fields
entry_mode: EntryMode
The mode of the deleted entry.
id: Id<'old>
The object id of the deleted entry.
An entry was deleted, like the deletion of a file or directory.
Modification
Fields
previous_entry_mode: EntryMode
The mode of the entry before the modification.
previous_id: Id<'old>
The object id of the entry before the modification.
entry_mode: EntryMode
The mode of the entry after the modification.
id: Id<'new>
The object id after the modification.
An entry was modified, e.g. changing the contents of a file adjusts its object id and turning a file into a symbolic link adjusts its mode.
Implementations
Trait Implementations
impl<'old, 'new> Copy for Event<'old, 'new>
Auto Trait Implementations
impl<'old, 'new> !RefUnwindSafe for Event<'old, 'new>
impl<'old, 'new> !Send for Event<'old, 'new>
impl<'old, 'new> !Sync for Event<'old, 'new>
impl<'old, 'new> Unpin for Event<'old, 'new>
impl<'old, 'new> !UnwindSafe for Event<'old, 'new>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more