Crates.io | dynamic_tcp_proxy |
lib.rs | dynamic_tcp_proxy |
version | 0.1.0 |
source | src |
created_at | 2024-08-10 07:44:32.492618 |
updated_at | 2024-08-10 07:44:32.492618 |
description | Dynamic proxy implementation in Rust. This crate is designed to allow you to start a proxy that can be reconfigured at runtime. |
homepage | https://github.com/sathish-pv/port-switch/tree/main/crates/dynamic_tcp_proxy |
repository | https://github.com/sathish-pv/port-switch |
max_upload_size | |
id | 1332129 |
size | 8,892 |
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.
Sender
.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.
impl DynamicProxy {
pub fn start(self) -> Result<(Sender<ProxyConfig>, JoinHandle<()>), Error>
}