(&self)
| 149 | |
| 150 | impl ProxyScheme { |
| 151 | pub fn maybe_auth(&self) -> Option<&Auth> { |
| 152 | match self { |
| 153 | ProxyScheme::Http { auth, .. } |
| 154 | | ProxyScheme::Https { auth, .. } |
| 155 | | ProxyScheme::Socks5 { auth, .. } => auth.as_ref(), |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | fn socks5(addr: SocketAddr) -> Result<Self, ProxyError> { |
| 160 | Ok(ProxyScheme::Socks5 { |
no outgoing calls
no test coverage detected