Wrap a client action into an object, that holds the values used in the protocol.

Instance Variable command name of the command sent to the server. (type: bytes)
Method __init__ Create a command.
Method success Shortcut method to fire the underlying deferred.
Method fail Make the underlying deferred fails.
Instance Variable _deferred the Deferred object that will be fired when the result arrives. (type: Deferred)
_deferred =
the Deferred object that will be fired when the result arrives. (type: Deferred)
command =
name of the command sent to the server. (type: bytes)
def __init__(self, command, **kwargs):

Create a command.

Parameterscommandthe name of the command. (type: bytes)
kwargsthis values will be stored as attributes of the object for future use
def success(self, value):

Shortcut method to fire the underlying deferred.

def fail(self, error):

Make the underlying deferred fails.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.