Search bar offers the following options:
Term presence. The below example searches for documents that
must contain “foo”, might contain “bar” and must not contain “baz”:
+foo bar -baz
Wildcards. The below example searches for documents with words beginning with “foo”:
Search in specific fields. The following search matches all objects
in "twisted.mail" that matches “search”:
Possible fields: 'name', 'qname' (fully qualified name), 'docstring', and 'kind'. Last two fields are only applicable if "search in docstrings" is enabled.
Fuzzy matches. The following search matches all documents
that have a word within 1 edit distance of “foo”:
Results provided by Lunr.js
class ClientService(service.Service): (source)
ClientService(endpoint, factory, retryPolicy, clock, prepareConnection)
ClientService maintains a single outgoing connection to a client endpoint, reconnecting after a configurable timeout when a connection fails, either before or after connecting.
||Stop attempting to reconnect and close any existing connections.|
||Retrieve the currently-connected
||Use this API to remove an
||Do preparation work for starting the service.|
||Set the name of the service.|
||Set the parent of the service. This method is responsible for setting the parent attribute on this service (the child service).|
||A str which is the name of the service or None.|
||An IServiceCollection which is the parent or None.|
||A boolean which indicates whether the service is running.|
|retry||A policy configuring how long |
|clock:||The clock used to schedule reconnection. It's mainly useful to be parametrized in tests. If the factory is serialized, this attribute will not be serialized, and the default value (the reactor) will be restored when deserialized.|
A single argument
The prepareConnection callable may raise an exception or return a
Present Since Twisted 18.7.0
ClientService, initiating the connection retry loop.
Stop attempting to reconnect and close any existing connections.
Retrieve the currently-connected
Protocol, or the next one to connect.
|fail||number of connection failures after which the Deferred will deliver a Failure (None means the Deferred will only fail if/when the service is stopped). Set this to 1 to make the very first connection failure signal an error. Use 2 to allow one failure but signal an error if the subsequent retry then fails.|
|a Deferred that fires with a protocol produced by the factory passed to __init__|