#[non_exhaustive]pub enum ResolutionError {
InvalidDid,
DocumentMismatch,
TargetNotAllowed,
DocumentTooLarge,
NotFound,
Transport(String),
Malformed(String),
UnsupportedMethod,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidDid
DocumentMismatch
The resolved document’s id was not the DID being resolved, so the
document speaks for an identifier its host does not control.
TargetNotAllowed
The target was rejected before any request was sent.
DocumentTooLarge
NotFound
The host answered, and publishes no document for this DID. A caller should not retry, and should not treat the DID as merely unreachable.
Transport(String)
The host could not be reached, or answered in a way that says nothing about the DID. Worth retrying.
Detail never includes the resolved URL, which would make resolution errors an oracle for probing internal hosts.
Malformed(String)
The host answered with something that is not a DID document.
UnsupportedMethod
Trait Implementations§
Source§impl Debug for ResolutionError
impl Debug for ResolutionError
Source§impl Display for ResolutionError
impl Display for ResolutionError
Source§impl Error for ResolutionError
impl Error for ResolutionError
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()
Auto Trait Implementations§
impl Freeze for ResolutionError
impl RefUnwindSafe for ResolutionError
impl Send for ResolutionError
impl Sync for ResolutionError
impl Unpin for ResolutionError
impl UnsafeUnpin for ResolutionError
impl UnwindSafe for ResolutionError
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