#[non_exhaustive]pub enum ServiceError {
EndpointOutsideIssuer {
endpoint: &'static str,
url: String,
},
DuplicatePath {
path: String,
},
MetadataNotSerializable {
detail: String,
},
JwksNotSerializable {
detail: String,
},
}http only.Expand description
Why a router could not be built. Every variant is a host configuration mistake that would
otherwise become a runtime 404 on an endpoint the metadata document promises.
#[non_exhaustive]: this type’s shape already varies with the cargo features a host
enables, so an exhaustive match on it was never portable between builds of this crate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EndpointOutsideIssuer
An advertised endpoint is not under the issuer, so this router cannot serve it. The host is either fronting a separate service or has a typo; either way, silently not routing it would publish a promise nothing keeps.
DuplicatePath
Two endpoints resolved to the same path, so one would shadow the other.
MetadataNotSerializable
The metadata document could not be serialized. Structurally impossible for the derived document, but reported rather than panicked: a library does not abort a host’s process.
JwksNotSerializable
jwt only.The RFC 7517 key set could not be serialized. As structurally impossible as the metadata case, and reported for the same reason.
Trait Implementations§
Source§impl Clone for ServiceError
impl Clone for ServiceError
Source§fn clone(&self) -> ServiceError
fn clone(&self) -> ServiceError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ServiceError
impl Debug for ServiceError
Source§impl Display for ServiceError
impl Display for ServiceError
impl Eq for ServiceError
Source§impl Error for ServiceError
impl Error for ServiceError
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()