codekingpro/portable-devtools
114k
1from __future__ import annotations2 3from collections.abc import Awaitable, Callable4from typing import final5from . import Stream6 7async def create_tun_interface(8 handle_tcp_stream: Callable[[Stream], Awaitable[None]],9 handle_udp_stream: Callable[[Stream], Awaitable[None]],10 tun_name: str | None = None,11) -> TunInterface: ...12@final13class TunInterface:14 def tun_name(self) -> str: ...15 def close(self) -> None: ...16 async def wait_closed(self) -> None: ...17 def __repr__(self) -> str: ...18 @staticmethod19 def unavailable_reason() -> str | None: ...20 21__all__ = [22 "create_tun_interface",23 "TunInterface",24]25 