pub struct Recorder {
pub records: Vec<Entry>,
/* private fields */
}
Expand description
A Visit implementation to record every observed change and keep track of the changed paths.
Recorders can also be instructed to track the filename only, or no location at all.
Fields§
§records: Vec<Entry>
The observed entries.
Implementations§
Trait Implementations§
source§impl Visit for Recorder
impl Visit for Recorder
source§fn pop_front_tracked_path_and_set_current(&mut self)
fn pop_front_tracked_path_and_set_current(&mut self)
Sets the full path path in front of the queue so future calls to push and pop components affect it instead.
source§fn push_back_tracked_path_component(&mut self, component: &BStr)
fn push_back_tracked_path_component(&mut self, component: &BStr)
Append a
component
to the end of a path, which may be empty.source§fn push_path_component(&mut self, component: &BStr)
fn push_path_component(&mut self, component: &BStr)
Append a
component
to the end of a path, which may be empty.source§fn pop_path_component(&mut self)
fn pop_path_component(&mut self)
Removes the last component from the path, which may leave it empty.
source§fn visit_tree(&mut self, entry: &EntryRef<'_>) -> Action
fn visit_tree(&mut self, entry: &EntryRef<'_>) -> Action
Observe a tree entry that is a tree and return an instruction whether to continue or not.
Action::Skip
can be used to prevent traversing it, for example if it’s known to the caller already. Read moresource§fn visit_nontree(&mut self, entry: &EntryRef<'_>) -> Action
fn visit_nontree(&mut self, entry: &EntryRef<'_>) -> Action
Observe a tree entry that is NO tree and return an instruction whether to continue or not.
Action::Skip
has no effect here. Read moreAuto Trait Implementations§
impl Freeze for Recorder
impl RefUnwindSafe for Recorder
impl Send for Recorder
impl Sync for Recorder
impl Unpin for Recorder
impl UnwindSafe for Recorder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)