class documentation

class HandlerConstructor(TypingProtocol):

View In Hierarchy

Protocol for handler constructors.

Method __call__ Create a handler instance.
def __call__(self, backend: Backend, args: list[bytes], proto: Protocol, stateless_rpc: bool = False, advertise_refs: bool = False) -> Handler: ΒΆ

Create a handler instance.

Parameters
backend:BackendThe backend to use for the handler
args:list[bytes]Arguments for the handler
proto:ProtocolProtocol object for communication
stateless_rpc:boolWhether to use stateless RPC mode
advertise_refs:boolWhether to advertise references
Returns
HandlerA Handler instance