Skip to main content

is_proxy_error

Function is_proxy_error 

Source
pub fn is_proxy_error(error: &dyn Error) -> bool
Expand description

Returns true if the error message indicates a proxy-related failure. This checks for common proxy error patterns like “connection refused”, “tunnel failed”, etc. Useful in retry logic to decide whether to switch to a different proxy.