#[non_exhaustive]pub enum ProxyError {
Show 36 variants
Engine(EngineError),
NonLoopbackEndpoint,
ZeroProxyPort,
NonLoopbackClient,
ZeroRuntimeSession,
ZeroRuntimeGeneration,
ZeroProcessSession,
ZeroProcessGeneration,
ZeroListenerGeneration,
InvalidLimits,
ClockRollback,
TimeOverflow,
InvalidHost,
ScopeMustBeHnsTld,
HostOutsideScope,
StaleRuntime,
AuthorityNotReady,
MalformedRequest,
MalformedAuthority,
AuthorityMismatch,
RequestBodyOrUpgrade,
AuthenticationFailed,
PendingLimit,
PendingExpired,
InstanceSequenceExhausted,
RequestSequenceExhausted,
PublicationSequenceExhausted,
RegistryGenerationExhausted,
StaleRegistryGeneration,
PublicationLimit,
PublicationAlreadyExists,
PublicationMismatch,
PendingMismatch,
ProviderAuthorityMismatch,
ProviderAuthorityNotYetValid,
ProviderAuthorityExpired,
}Expand description
Proxy configuration, request, runtime, or provider-publication 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.
ZeroRuntimeSession
Browser runtime session must be nonzero.
ZeroRuntimeGeneration
Runtime generation must begin above zero.
ZeroProcessSession
Native process session must be nonzero and fresh per start.
ZeroProcessGeneration
Native process generation must begin above zero.
ZeroListenerGeneration
Listener generation must begin above zero.
InvalidLimits
Proxy resource bounds are invalid.
ClockRollback
Caller-supplied trusted time moved backwards within this session.
TimeOverflow
A bounded absolute deadline cannot be represented.
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.
AuthenticationFailed
Proxy capability is missing, duplicated, or incorrect.
PendingLimit
Pending request bound is full.
PendingExpired
Pending CONNECT reached its exclusive expiry.
InstanceSequenceExhausted
Process-local proxy instance counter cannot advance.
RequestSequenceExhausted
Request sequence cannot advance.
PublicationSequenceExhausted
Publication sequence cannot advance.
RegistryGenerationExhausted
Registry generation cannot advance.
StaleRegistryGeneration
Caller did not present the exact current registry generation.
PublicationLimit
Publication registry reached its configured capacity.
PublicationAlreadyExists
Exact logical origin already has a publication.
PublicationMismatch
Admission belongs to another, replaced, revoked, or restarted registry.
PendingMismatch
Pending token belongs to another proxy, was changed, or was consumed.
ProviderAuthorityMismatch
Engine-issued provider authority is not valid for the exact current binding.
ProviderAuthorityNotYetValid
Provider authority predates its validity window.
ProviderAuthorityExpired
Provider authority or its short publication lifetime expired.
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()