mirror of
https://github.com/controllerzz/carbus_lib.git
synced 2026-07-27 16:06:03 +03:00
save
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Protocol, Optional
|
||||
from carbus_async.messages import CanMessage
|
||||
|
||||
|
||||
class CanTransport(Protocol):
|
||||
|
||||
async def send(self, msg: CanMessage) -> None:
|
||||
...
|
||||
|
||||
async def recv(self, timeout: Optional[float] = None) -> Optional[CanMessage]:
|
||||
...
|
||||
Reference in New Issue
Block a user