2025-12-25 upload
This commit is contained in:
24
venv/Lib/site-packages/mitmproxy_rs/tun.pyi
Normal file
24
venv/Lib/site-packages/mitmproxy_rs/tun.pyi
Normal file
@@ -0,0 +1,24 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Awaitable, Callable
|
||||
from typing import final
|
||||
from . import Stream
|
||||
|
||||
async def create_tun_interface(
|
||||
handle_tcp_stream: Callable[[Stream], Awaitable[None]],
|
||||
handle_udp_stream: Callable[[Stream], Awaitable[None]],
|
||||
tun_name: str | None = None,
|
||||
) -> TunInterface: ...
|
||||
@final
|
||||
class TunInterface:
|
||||
def tun_name(self) -> str: ...
|
||||
def close(self) -> None: ...
|
||||
async def wait_closed(self) -> None: ...
|
||||
def __repr__(self) -> str: ...
|
||||
@staticmethod
|
||||
def unavailable_reason() -> str | None: ...
|
||||
|
||||
__all__ = [
|
||||
"create_tun_interface",
|
||||
"TunInterface",
|
||||
]
|
||||
Reference in New Issue
Block a user