pub struct Connector { /* private fields */ }
Expand description

The Connector defines how to connect to the watchman server. You will typically use Connector::new to set up the connection with the environmental defaults. You might want to override those defaults in situations such as integration testing environments, or in extremely latency sensitive environments where the cost of performing discovery is a measurable overhead.

Implementations

Set up the connector with the system defaults. If WATCHMAN_SOCK is set in the environment it will preset the local IPC socket path. Otherwise the connector will invoke the watchman CLI to perform discovery.

If the watchman CLI is installed in a location that is not present in the PATH environment variable, this method is used to inform the connector of its location.

Specify the unix domain socket path

Establish a connection to the watchman server. If the connector was configured to perform discovery (which is the default configuration), then this will attempt to start the watchman server.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.