Module watchman_client::pdu[][src]

Expand description

This module defines the request and response PDU types used by the watchman protocol.

Structs

The clock command request.

The clock command response

Holds extended clock data that includes source control aware query metadata. https://facebook.github.io/watchman/docs/scm-query.html

The get-config command request

The get-config command response

The get-sockname command response

The query request

The query parameters. There are a large number of fields that influence the behavior.

Holds the result of a query. The result is generic over a F type that you define. The F should deserialize the list of fields in your QueryRequestCommon struct.

Holds extended clock data that includes source control aware query metadata. https://facebook.github.io/watchman/docs/scm-query.html

Holds extended clock data that includes source control aware query metadata. https://facebook.github.io/watchman/docs/scm-query.html

Returns information about the state of the watch at the time the subscription was initiated.

The watch-project command request. You should use Client::resolve_root rather than directly constructing this type.

The watch-project response

An incomplete, but typed, representation of the Watchman config file, which usually lives in /etc/watchman.json. Add new fields as they’re needed, and it might be worth someday exposing the serde_bser::Value directly so callers can parse it however they want.

Enums

A Clock is used to refer to a logical point in time. Internally, watchman maintains a monotonically increasing tick counter along with some additional data to detect A-B-A style situations if eg: the watchman server is restarted.

The fundamental clock specifier string. The contents of the string should be considered to be opaque to the client as the server occasionally evolves the meaning of the clockspec and its format is expressly not a stable API.

Reports the content SHA1 hash for a file. Since computing the hash can fail, this struct can also represent the error that happened during hash computation.

Encodes the file type field returned in query results and specified in expression terms.

When using the path generator, this specifies a path to be examined. https://facebook.github.io/watchman/docs/file-query.html#path-generator