pub enum WatchEvent {
Ready,
Batch(Vec<String>),
}Expand description
One unsolicited line of a live watch, as the wire carries it (§5):
{"event":"ready"} once the feed is primed, then {"event":"batch", "paths":[…]} per debounced batch of changed paths.
Variants§
Ready
Every change from now on will be reported (sent once, after the
watch response). An in-process source is ready at once.
Batch(Vec<String>)
A batch of changed repo-relative paths.
Implementations§
Trait Implementations§
Source§impl Clone for WatchEvent
impl Clone for WatchEvent
Source§impl Debug for WatchEvent
impl Debug for WatchEvent
impl Eq for WatchEvent
Source§impl PartialEq for WatchEvent
impl PartialEq for WatchEvent
impl StructuralPartialEq for WatchEvent
Auto Trait Implementations§
impl Freeze for WatchEvent
impl RefUnwindSafe for WatchEvent
impl Send for WatchEvent
impl Sync for WatchEvent
impl Unpin for WatchEvent
impl UnsafeUnpin for WatchEvent
impl UnwindSafe for WatchEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.