IN_KWARGS: Tuple[Tuple[str, Callable[[Any], Any], Any], ...] = ()
OUT_KWARGS: Tuple[Tuple[str, Callable[[Any], Any], Any], ...] = ()
+ @classmethod
+ def proto_name(cls) -> str:
+ ...
+
class In:
def __init__(self, *args: Any, **kwargs: Any) -> None:
...
class ProtoModule:
+ __name__: str
+
class Stream:
def recv(self, segment: bytes) -> List[Union[bytes, str]]:
...
def enframe(buffer: bytes, imei: Optional[str] = None) -> bytes:
...
+ class DecodeError(Exception):
+ ...
+
@staticmethod
def exposed_protos() -> List[Tuple[str, bool]]:
...
@staticmethod
def class_by_prefix(prefix: str) -> Union[Type[ProtoClass], List[str]]:
...
+
+ @staticmethod
+ def make_response(
+ cmd: str, imei: str, **kwargs: Any
+ ) -> Optional[ProtoClass.Out]:
+ ...