pub enum EndpointError {
EndpointNotAllowed {
origin: String,
},
EmptyAllowlist,
Malformed {
what: &'static str,
},
UserInfo,
Wildcard,
PlaintextNotLoopback {
origin: String,
},
}Expand description
Why an endpoint or allowlist entry was refused. Never carries a header value or other secret; an origin is not one.
Variants§
EndpointNotAllowed
The origin is not in the allowlist.
EmptyAllowlist
The allowlist is empty, which refuses every endpoint.
Malformed
Not a URL this check reads; what says why.
UserInfo
User information in the authority.
Wildcard
A wildcard in a host or entry.
PlaintextNotLoopback
Plaintext to a host that is not a loopback IP literal.
Trait Implementations§
Source§impl Clone for EndpointError
impl Clone 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