Go to the latest version of this document.
search in docstrings

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”: `foo*`
- Search in specific fields. The following search matches all objects in "twisted.mail" that matches “search”: `+qname:twisted.mail.* +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”: `foo~1`

Results provided by Lunr.js

# ``twisted`.`internet`.`testing`.`_FakeConnector``

class documentation

`class _FakeConnector: (source)`

Implements interfaces: `twisted.internet.interfaces.IConnector`

View In Hierarchy

A fake `IConnector` that allows us to inspect if it has been told to stop connecting.

Method | `__init__` | No summary
Method | `connect` | Implement `IConnector.connect` as a no-op.
Method | `disconnect` | Implement `IConnector.disconnect` as a no-op.
Method | `getDestination` | Implement `IConnector.getDestination` to return the `address` passed to `__init__`.
Method | `stopConnecting` | Implement `IConnector.stopConnecting` and set `_FakeConnector.stoppedConnecting` to `True`
Instance Variable | `stoppedConnecting` | has this connector's `_FakeConnector.stopConnecting` method been invoked yet?
Instance Variable | `_address` | An `IAddress` provider that represents our destination.
Instance Variable | `_disconnected` | Undocumented

def __init__(self, address): (source)

Parameters
address | An `IAddress` provider that represents this connector's destination.

def connect(self): (source)
from `twisted.internet.interfaces.IConnector`

Implement `IConnector.connect` as a no-op.

def disconnect(self): (source)
from `twisted.internet.interfaces.IConnector`

Implement `IConnector.disconnect` as a no-op.

def getDestination(self): (source)
from `twisted.internet.interfaces.IConnector`

Implement `IConnector.getDestination` to return the `address` passed to `__init__`.

def stopConnecting(self): (source)
from `twisted.internet.interfaces.IConnector`

Implement `IConnector.stopConnecting` and set `_FakeConnector.stoppedConnecting` to `True`

stoppedConnecting: `bool` = (source)

has this connector's `_FakeConnector.stopConnecting` method been invoked yet?

_address = (source)

An `IAddress` provider that represents our destination.

_disconnected: `bool` = (source)

Undocumented