mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
26 lines
529 B
Python
26 lines
529 B
Python
from collections.abc import (
|
|
Awaitable,
|
|
Mapping,
|
|
)
|
|
from typing import (
|
|
Callable,
|
|
)
|
|
|
|
from libp2p.custom_types import (
|
|
TProtocol,
|
|
)
|
|
from libp2p.io.abc import (
|
|
ReadWriteCloser,
|
|
)
|
|
from libp2p.security.secure_transport_interface import (
|
|
ISecureTransport,
|
|
)
|
|
from libp2p.stream_muxer.abc import (
|
|
IMuxedConn,
|
|
)
|
|
|
|
THandler = Callable[[ReadWriteCloser], Awaitable[None]]
|
|
TSecurityOptions = Mapping[TProtocol, ISecureTransport]
|
|
TMuxerClass = type[IMuxedConn]
|
|
TMuxerOptions = Mapping[TProtocol, TMuxerClass]
|