#[non_exhaustive]pub enum ProxyError {
Show 22 variants
Engine(EngineError),
NonLoopbackEndpoint,
ZeroProxyPort,
NonLoopbackClient,
ZeroRuntimeGeneration,
InvalidLimits,
InvalidHost,
ScopeMustBeHnsTld,
HostOutsideScope,
StaleRuntime,
AuthorityNotReady,
MalformedRequest,
MalformedAuthority,
AuthorityMismatch,
RequestBodyOrUpgrade,
OriginPortRejected,
AuthenticationFailed,
PendingLimit,
InstanceSequenceExhausted,
RequestSequenceExhausted,
PendingMismatch,
BridgeAuthorizationMismatch,
}Expand description
Proxy configuration, request, runtime, or bridge failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Engine(EngineError)
Engine state could not be read or advanced.
NonLoopbackEndpoint
Listener endpoint is not numeric loopback.
ZeroProxyPort
Port zero cannot be advertised in PAC/native messaging.
NonLoopbackClient
Client did not connect from a loopback address.
ZeroRuntimeGeneration
Runtime generation must begin above zero.
InvalidLimits
Proxy resource bounds are invalid.
InvalidHost
Host is not strict ASCII/punycode DNS text.
ScopeMustBeHnsTld
Scope root must be one proof-verified HNS TLD label.
HostOutsideScope
CONNECT target is outside the immutable HNS scope.
StaleRuntime
Runtime session/generation was revoked or differs from this proxy.
AuthorityNotReady
Engine authority state is not ready for this phase.
MalformedRequest
Request head is malformed, incomplete, oversized, or ambiguous.
MalformedAuthority
CONNECT authority is not canonical host:port.
AuthorityMismatch
Host header does not exactly match the request target.
RequestBodyOrUpgrade
CONNECT request attempted a body or protocol upgrade.
OriginPortRejected
Only the configured secure origin port is admitted.
AuthenticationFailed
Proxy capability is missing, duplicated, or incorrect.
PendingLimit
Pending request bound is full.
InstanceSequenceExhausted
Process-local proxy instance counter cannot advance.
RequestSequenceExhausted
Request sequence cannot advance.
PendingMismatch
Pending token belongs to another proxy, was changed, or was consumed.
BridgeAuthorizationMismatch
Engine bridge capability does not authorize this exact current origin.
Trait Implementations§
Source§impl Debug for ProxyError
impl Debug for ProxyError
Source§impl Display for ProxyError
impl Display for ProxyError
Source§impl Error for ProxyError
impl Error for ProxyError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()