pub struct CodeGraphWatcher { /* private fields */ }Expand description
CodeGraph file watcher for auto-sync.
Implementations§
Source§impl CodeGraphWatcher
impl CodeGraphWatcher
Sourcepub fn is_daemon_running(project_path: &Path) -> bool
pub fn is_daemon_running(project_path: &Path) -> bool
Check if CodeGraph MCP daemon is already running. Returns true if daemon is active (skip watcher to avoid conflict).
Sourcepub fn with_auto_detect(start_path: &Path) -> Self
pub fn with_auto_detect(start_path: &Path) -> Self
Create watcher with automatic project root detection.
Sourcepub fn start(&self, cancel_token: CancellationToken) -> JoinHandle<()>
pub fn start(&self, cancel_token: CancellationToken) -> JoinHandle<()>
Start watching for file changes.
Auto Trait Implementations§
impl Freeze for CodeGraphWatcher
impl !RefUnwindSafe for CodeGraphWatcher
impl Send for CodeGraphWatcher
impl Sync for CodeGraphWatcher
impl Unpin for CodeGraphWatcher
impl UnsafeUnpin for CodeGraphWatcher
impl !UnwindSafe for CodeGraphWatcher
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