18 lines
326 B
Python
18 lines
326 B
Python
from abc import ABC, abstractmethod
|
|
|
|
# pylint: disable=too-few-public-methods
|
|
|
|
|
|
class IRawConnection(ABC):
|
|
"""
|
|
A Raw Connection provides a Reader and a Writer
|
|
"""
|
|
|
|
@abstractmethod
|
|
async def write(self, data: bytes) -> None:
|
|
pass
|
|
|
|
@abstractmethod
|
|
async def read(self) -> bytes:
|
|
pass
|