Enum watchman_client::SubscriptionData [−][src]
pub enum SubscriptionData<F> where
F: DeserializeOwned + Debug + Clone + QueryFieldList, { Canceled, FilesChanged(QueryResult<F>), StateEnter { state_name: String, metadata: Option<Value>, }, StateLeave { state_name: String, metadata: Option<Value>, }, }
Expand description
Returned by Subscription::next as events are observed by Watchman.
Variants
The Subscription was canceled. This could be for a number of reasons that are not knowable to the client:
- The user may have issued the
watch-del
command - The containing watch root may have been deleted or un-mounted
- The containing watch may no longer be accessible to the watchman user/process
- Some other error condition that renders the project unwatchable may have occurred
- The server may have been gracefully shutdown
A Canceled subscription will deliver no further results.
FilesChanged(QueryResult<F>)
Files matching your criteria have changed. The QueryResult contains the details. Pay attention to the is_fresh_instance field!
Some other watchman client has broadcast that the watched
project is entering a new named state.
For example, hg.update
may be generated by the FB
internal source control system to indicate that the
working copy is about to be updated to a new revision.
The metadata field contains data specific to the named
state.
Some other watchman client has broadcast that the watched
project is no longer in the named state.
This event can also be generated if the watchman client
that entered the state disconnects unexpectedly from
the watchman server.
The metadata
field will be None
in that situation.
Trait Implementations
impl<F: Clone> Clone for SubscriptionData<F> where
F: DeserializeOwned + Debug + Clone + QueryFieldList,
impl<F: Clone> Clone for SubscriptionData<F> where
F: DeserializeOwned + Debug + Clone + QueryFieldList,
Auto Trait Implementations
impl<F> RefUnwindSafe for SubscriptionData<F> where
F: RefUnwindSafe,
impl<F> Send for SubscriptionData<F> where
F: Send,
impl<F> Sync for SubscriptionData<F> where
F: Sync,
impl<F> Unpin for SubscriptionData<F> where
F: Unpin,
impl<F> UnwindSafe for SubscriptionData<F> where
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more