Function tun2proxy::run

source ·
pub async fn run<D>(
    device: D,
    mtu: u16,
    args: Args,
    shutdown_token: CancellationToken,
) -> Result<()>
where D: AsyncRead + AsyncWrite + Unpin + Send + 'static,
Expand description

Run the proxy server

§Arguments

  • device - The network device to use
  • mtu - The MTU of the network device
  • args - The arguments to use
  • shutdown_token - The token to exit the server