[][src]Module watchman_client::pdu

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

Structs

ClockRequest

The clock command request.

ClockRequestParams
ClockResponse

The clock command response

ClockSpec

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.

FatClockData

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

GetSockNameResponse

The get-sockname command response

QueryRequest

The query request

QueryRequestCommon

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

QueryResult

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.

SavedStateClockData

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

ScmAwareClockData

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

SubscribeCommand
SubscribeRequest
SubscribeResponse

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

Unsubscribe
UnsubscribeResponse
WatchProjectRequest

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

WatchProjectResponse

The watch-project response

Enums

Clock

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.

ContentSha1Hex

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.

FileType

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

PathGeneratorElement

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

SyncTimeout