py-libp2p/libp2p/stream_muxer/mplex/datastructures.py

7 lines
103 B
Python
Raw Normal View History

2019-08-28 21:45:18 +08:00
from typing import NamedTuple
class StreamID(NamedTuple):
channel_id: int
is_initiator: bool