pub struct DirectoryWatcher { /* private fields */ }Expand description
Watcher por polling con auto-indexing.
Implementations§
Source§impl DirectoryWatcher
impl DirectoryWatcher
pub fn new( dir: PathBuf, ext: String, interval_secs: u64, store: MemoryStore, project: String, ) -> Self
Sourcepub fn with_track_new_only(self, val: bool) -> Self
pub fn with_track_new_only(self, val: bool) -> Self
Set whether to only track new files (skip existing).
Sourcepub async fn scan(&mut self) -> Result<ScanResult>
pub async fn scan(&mut self) -> Result<ScanResult>
Escanea el directorio en busca de archivos nuevos o modificados. Público para testing y uso manual desde MCP.
Sourcepub fn tracked_count(&self) -> usize
pub fn tracked_count(&self) -> usize
Returns current tracked file count.
Sourcepub fn tracked_summary(&self) -> Vec<(String, bool)>
pub fn tracked_summary(&self) -> Vec<(String, bool)>
Returns summary of tracked files.
Auto Trait Implementations§
impl Freeze for DirectoryWatcher
impl RefUnwindSafe for DirectoryWatcher
impl Send for DirectoryWatcher
impl Sync for DirectoryWatcher
impl Unpin for DirectoryWatcher
impl UnsafeUnpin for DirectoryWatcher
impl UnwindSafe for DirectoryWatcher
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more