pub enum EndpointError {
Show 14 variants
InputTooLong,
InvalidUrl,
HttpsRequired,
MissingHost,
CredentialsForbidden,
AmbiguousAuthority,
QueryForbidden,
FragmentForbidden,
TrailingSlash,
InvalidTargetEncoding,
TargetNormalized,
AllocationFailed,
IdentityRejected,
PolicyRejected,
}Expand description
HTTPS endpoint validation or target-composition error.
Variants§
InputTooLong
The raw endpoint exceeds MAX_CONFIGURED_ENDPOINT_BYTES.
InvalidUrl
The endpoint is not a valid absolute URL.
HttpsRequired
Public endpoints must use HTTPS.
MissingHost
A host is required.
CredentialsForbidden
URL user information is forbidden.
AmbiguousAuthority
The configured authority uses a non-canonical or ambiguous host form.
QueryForbidden
Base endpoint queries are forbidden.
FragmentForbidden
Base endpoint fragments are forbidden.
TrailingSlash
Non-root endpoint paths must not end in /.
InvalidTargetEncoding
Target percent encoding is malformed or encodes structural path bytes.
TargetNormalized
URL parsing changed the exact configured base plus target bytes.
AllocationFailed
Allocation failed during target composition.
IdentityRejected
The normalized endpoint could not be represented by the shared identity contract.
PolicyRejected
The endpoint is not admitted by the supplied provider policy.
Trait Implementations§
Source§impl Clone for EndpointError
impl Clone for EndpointError
Source§fn clone(&self) -> EndpointError
fn clone(&self) -> EndpointError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for EndpointError
Source§impl Debug for EndpointError
impl Debug for EndpointError
Source§impl Display for EndpointError
impl Display for EndpointError
impl Eq for EndpointError
Source§impl Error for EndpointError
impl Error for EndpointError
1.30.0 · 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()