py-libp2p/libp2p/stream_muxer/mplex/datastructures.py
2019-08-28 21:45:18 +08:00

7 lines
103 B
Python

from typing import NamedTuple
class StreamID(NamedTuple):
channel_id: int
is_initiator: bool