Trait Watcher
buruma
pub trait Watcher: Debug + Send { fn process(&self, event: &WatchedEvent) -> ZKResult<()>; }
事件回调 trait,实现该 trait 即可自定义处理 ZooKeeper 回调通知
fn process(&self, event: &WatchedEvent) -> ZKResult<()>