Struct notify::poll::PollWatcher
source · [−]pub struct PollWatcher { /* private fields */ }
Expand description
Polling based Watcher
implementation.
By default scans through all files and checks for changed entries based on their change date. Can also be changed to perform file content change checks.
See Config for more details.
Implementations
sourceimpl PollWatcher
impl PollWatcher
sourcepub fn new<F: EventHandler>(
event_handler: F,
config: Config
) -> Result<PollWatcher>
pub fn new<F: EventHandler>(
event_handler: F,
config: Config
) -> 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, config: Config) -> Result<Self>
fn new<F: EventHandler>(event_handler: F, config: Config) -> Result<Self>
Create a new PollWatcher.
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