Struct notify::poll::PollWatcher
source · [−]pub struct PollWatcher { /* private fields */ }
Expand description
Polling based Watcher
implementation
Implementations
sourceimpl PollWatcher
impl PollWatcher
sourcepub fn with_config<F: EventHandler>(
event_handler: F,
config: PollWatcherConfig
) -> Result<PollWatcher>
pub fn with_config<F: EventHandler>(
event_handler: F,
config: PollWatcherConfig
) -> Result<PollWatcher>
Create a new PollWatcher, configured as needed.
Trait Implementations
sourceimpl Debug for PollWatcher
impl Debug for PollWatcher
sourceimpl Drop for PollWatcher
impl Drop for PollWatcher
sourceimpl Watcher for PollWatcher
impl Watcher for PollWatcher
sourcefn new<F: EventHandler>(event_handler: F) -> Result<Self>
fn new<F: EventHandler>(event_handler: F) -> Result<Self>
Create a new PollWatcher.
The default poll frequency is 30 seconds. Use [with_delay] to manually set the poll frequency.
sourcefn watch(&mut self, path: &Path, recursive_mode: RecursiveMode) -> Result<()>
fn watch(&mut self, path: &Path, recursive_mode: RecursiveMode) -> Result<()>
Begin watching a new path. Read more
sourcefn kind() -> WatcherKind
fn kind() -> WatcherKind
Returns the watcher kind, allowing to perform backend-specific tasks
Auto Trait Implementations
impl RefUnwindSafe for PollWatcher
impl Send for PollWatcher
impl Sync for PollWatcher
impl Unpin for PollWatcher
impl UnwindSafe for PollWatcher
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more