pub struct NotifyWorkspaceWatcher { /* private fields */ }Expand description
Watches workspace roots with notify.
One notify watcher is kept per root for the lifetime of the adapter — dropping it
stops the platform watch. Calling watch twice for the same root reuses the
existing watcher and returns a fresh handle to the same channel.
Implementations§
Trait Implementations§
Source§impl Debug for NotifyWorkspaceWatcher
impl Debug for NotifyWorkspaceWatcher
Source§impl Default for NotifyWorkspaceWatcher
impl Default for NotifyWorkspaceWatcher
Source§fn default() -> NotifyWorkspaceWatcher
fn default() -> NotifyWorkspaceWatcher
Returns the “default value” for a type. Read more
Source§impl WorkspaceWatcher for NotifyWorkspaceWatcher
impl WorkspaceWatcher for NotifyWorkspaceWatcher
Source§fn watch<'life0, 'life1, 'async_trait>(
&'life0 self,
root: &'life1 WorkspaceRoot,
) -> Pin<Box<dyn Future<Output = Result<WatchHandle>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn watch<'life0, 'life1, 'async_trait>(
&'life0 self,
root: &'life1 WorkspaceRoot,
) -> Pin<Box<dyn Future<Output = Result<WatchHandle>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !Freeze for NotifyWorkspaceWatcher
impl RefUnwindSafe for NotifyWorkspaceWatcher
impl Send for NotifyWorkspaceWatcher
impl Sync for NotifyWorkspaceWatcher
impl Unpin for NotifyWorkspaceWatcher
impl UnsafeUnpin for NotifyWorkspaceWatcher
impl UnwindSafe for NotifyWorkspaceWatcher
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