pub enum EndpointError {
InvalidUrl,
HttpsRequired,
MissingHost,
CredentialsForbidden,
QueryForbidden,
FragmentForbidden,
TrailingSlash,
InvalidTargetEncoding,
TargetNormalized,
AllocationFailed,
}Expand description
HTTPS endpoint validation or target-composition error.
Variants§
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.
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.
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
impl Eq for EndpointError
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