(options: ProxyOptions)
| 113 | |
| 114 | impl Proxy { |
| 115 | pub async fn new(options: ProxyOptions) -> Result<Self> { |
| 116 | let (port_policy_tx, port_policy_rx) = unbounded_channel(); |
| 117 | let inner = ProxyInner::new(options, port_policy_tx).await?; |
| 118 | let proxy = Self { |
| 119 | _inner: Arc::new(inner), |
| 120 | }; |
| 121 | crate::proxy::port_policy::spawn_fetcher(proxy.clone(), port_policy_rx); |
| 122 | Ok(proxy) |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | impl ProxyInner { |
nothing calls this directly
no test coverage detected