TransportFactory

Interface representing a factory for creating transports.

Bases
typing.Protocol

Methods

  • __call__(
      self,
      protocol_factory : typing.Callable[..., P],
      **kwargs
    ) -> tuple[Transport, P]

    Parameters

    • Name
      self
      Type
      Default
      Description

    • Name
      protocol_factory
      Type
      typing.Callable[..., P]
      Default
      Description

    • Name
      **kwargs
      Type
      Default
      = {}
      Description

    Response

    Type
    tuple[Transport, P]
    Description

Copyright © 2024