pub struct LocalWatcher { /* private fields */ }Implementations§
Source§impl LocalWatcher
impl LocalWatcher
pub fn new(dir: &Path, options: &WatchOptions) -> Result<Self, WatchError>
Trait Implementations§
Source§impl PathWatcher for LocalWatcher
impl PathWatcher for LocalWatcher
fn poll(&mut self) -> Result<Vec<WatchEvent>, WatchError>
fn read(&mut self, path: &str) -> Result<Vec<u8>, WatchError>
fn has_pending(&self) -> bool
fn connection_state(&self) -> ConnectionState
Auto Trait Implementations§
impl Freeze for LocalWatcher
impl RefUnwindSafe for LocalWatcher
impl Send for LocalWatcher
impl !Sync for LocalWatcher
impl Unpin for LocalWatcher
impl UnsafeUnpin for LocalWatcher
impl UnwindSafe for LocalWatcher
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