pub enum EndpointError {
Show 13 variants
InputTooLong,
InvalidUrl,
HttpsRequired,
MissingHost,
CredentialsForbidden,
AmbiguousAuthority,
QueryForbidden,
FragmentForbidden,
TrailingSlash,
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 /.
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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for EndpointError
impl PartialEq for EndpointError
impl StructuralPartialEq for EndpointError
Auto Trait Implementations§
impl Freeze for EndpointError
impl RefUnwindSafe for EndpointError
impl Send for EndpointError
impl Sync for EndpointError
impl Unpin for EndpointError
impl UnsafeUnpin for EndpointError
impl UnwindSafe for EndpointError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more