Module client
Available on crate feature
net only.Expand description
generic client net logic
Modules§
Structs§
- Boxed
Connector Service - A
ConnectorServicewhich only job is toBoxthe createdServiceby the innerConnectorService. - Connect
Request - A protocol-independent request to establish a client connection.
- Connection
Error - A classified error produced while establishing a client connection.
- Connector
Target - Target
HostWithPortwhich if found in extensions is to be used by a connector such as a TCPConnector instead of the requested address, unless a proxy is requested in which case a proxy is to be used instead. - Connector
Target Stream Extensionscarrier for anAddressCandidatessource.- Established
Client Connection - The established connection to a server returned for the http client to be used.
- Graceful
Connector Service - A
Servicethat wraps established client connections inGracefulIoand injects aCancelIoextension into the connection. - Lazy
Proxy Address Layer - Lazily resolve and apply a proxy address to any input with extensions.
- Lazy
Proxy Address Service - Service produced by
LazyProxyAddressLayer. - NoProxy
EnvLayer - Lazily apply conventional
NO_PROXYbypass rules. - NoProxy
EnvService - Service produced by
NoProxyEnvLayer. - Proxy
Address Layer - Apply one fixed proxy address to any service input with extensions.
- Proxy
Address Service - Service produced by
ProxyAddressLayer. - Proxy
EnvLayer - Lazily select a proxy from curl-compatible environment variables.
- Proxy
EnvService - Service produced by
ProxyEnvLayer. - Proxy
Route Connect Error - Errors produced by every attempted route of an unsuccessful connection.
- Proxy
Route Failure Cache - Shared negative cache for temporarily failing proxy routes.
- Proxy
Route Failure Cache Config - Configuration for a
ProxyRouteFailureCache. - Proxy
Route Failure Cache Connector - Connector wrapper that applies a shared
ProxyRouteFailureCache. - Proxy
Route Failure Cache Layer - Layer that applies a shared
ProxyRouteFailureCacheto a connector. - Proxy
Route Failure Cached Error - Error returned when a proxy route is still inside its failure backoff.
- Proxy
Route Index - Index of the selected route within the ordered route collection.
- Proxy
Routes - Ordered proxy routes to try while establishing a client connection.
- Proxy
Routes Connector - Try ordered proxy routes until a connection is established.
- Proxy
Routes Connector Layer - Layer that tries ordered proxy routes while establishing a connection.
- Proxy
Routes Layer - Resolve and materialize the route decision for downstream middleware.
- Proxy
Routes Service - Service produced by
ProxyRoutesLayer. - System
Proxy Config - A snapshot of the operating system’s proxy configuration.
- System
Proxy Layer - Apply the operating system’s proxy settings to client service inputs.
- System
Proxy PacRequest - The request information passed to a system PAC resolver.
- System
Proxy Service - See
SystemProxyLayer.
Enums§
- Connection
Error Domain - The architectural domain in which establishing a client connection failed.
- Connection
Error Kind - A protocol-independent description of what prevented connection setup.
- Either
Conn - A type to allow you to use multiple types as a single type.
- Either
Conn3 - A type to allow you to use multiple types as a single type.
- Either
Conn4 - A type to allow you to use multiple types as a single type.
- Either
Conn5 - A type to allow you to use multiple types as a single type.
- Either
Conn6 - A type to allow you to use multiple types as a single type.
- Either
Conn7 - A type to allow you to use multiple types as a single type.
- Either
Conn8 - A type to allow you to use multiple types as a single type.
- Either
Conn9 - A type to allow you to use multiple types as a single type.
- Either
Conn3 Connected - A type to allow you to use multiple types as a single type.
- Either
Conn4 Connected - A type to allow you to use multiple types as a single type.
- Either
Conn5 Connected - A type to allow you to use multiple types as a single type.
- Either
Conn6 Connected - A type to allow you to use multiple types as a single type.
- Either
Conn7 Connected - A type to allow you to use multiple types as a single type.
- Either
Conn8 Connected - A type to allow you to use multiple types as a single type.
- Either
Conn9 Connected - A type to allow you to use multiple types as a single type.
- Either
Conn Connected - A type to allow you to use multiple types as a single type.
- Proxy
Route - A single route through which a client connection can be established.
- Proxy
Route Failure Cache Scope - Scope used to identify temporarily failing proxy routes.
- System
Proxy Invalid Bypass Rule Policy - How system proxy discovery handles bypass rules Rama cannot parse.
Constants§
- DEFAULT_
SYSTEM_ PROXY_ CONFIG_ TTL - How long a
SystemProxyLayerkeeps a system proxy snapshot before lazily checking for changes.
Traits§
- Address
Candidates - A lazily-resolved source of connection target
SocketAddresses. - Connector
Service - Glue trait that is used as the Connector trait bound for clients establishing a connection on one layer or another.
- System
Proxy PacResolver - Resolves proxy routes for a request using one system-configured PAC script.
- System
Proxy PacService - Supplies a resolver for a system-configured PAC URI.
Functions§
- proxy_
request_ uri - Normalize a request target for fixed-proxy selection and PAC evaluation.
- race_
connect - Race connection attempts over a stream of candidate
SocketAddresses.