fwatch
fwatch is a file watching library written in Rust.
- API Documentation
- Cargo package: fwatch
Installation
Add this to your Cargo.toml
:
[]
= "0.1"
Basic Usage
The following example sets up a Watcher
to observe any changes (called Transition
's in fwatch) to foo.txt
and bar.txt
. The currently available transitions are Created
, Modified
, Deleted
, and None
.
Instead of BasicTarget
, any struct implementing the Watchable
trait can be used below.
use ;
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.