dynamic_tcp_proxy 0.1.0

Dynamic proxy implementation in Rust. This crate is designed to allow you to start a proxy that can be reconfigured at runtime.
Documentation
  • Coverage
  • 0%
    0 out of 4 items documented0 out of 2 items with examples
  • Size
  • Source code size: 16.31 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.32 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 36s Average build duration of successful builds.
  • all releases: 36s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • sathish-pv/port-switch
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • sathish-pv

DynamicProxy

The DynamicProxy crate provides a dynamic proxy implementation in Rust. This crate is designed to allow you to start a proxy that can be reconfigured at runtime. It leverages channels to update the proxy's configuration and spawns a thread to manage the proxy's operation.

Features

  • Dynamic Proxy Configuration: Update the proxy's configuration at runtime using a Sender.
  • Concurrency: The proxy runs in its own thread, allowing it to handle requests concurrently.
  • Simple API: The crate provides an easy-to-use API for starting the proxy and sending configuration updates.

Usage

DynamicProxy::start

The start method initializes the dynamic proxy and begins its operation. It returns a Sender for updating the proxy's configuration and a JoinHandle for the spawned thread managing the proxy.

Signature

impl DynamicProxy {
    pub fn start(self) -> Result<(Sender<ProxyConfig>, JoinHandle<()>), Error>
}