pub enum ResolverError {
UnsupportedMethod(String),
DIDError(DIDError),
DocumentError(DocumentError),
ResolutionFailed(String),
InvalidDocument(String),
Other {
message: String,
source: Option<Box<dyn Error + Sync + Send>>,
},
}Expand description
Error type for resolver failures.
Distinct from DIDError which covers parsing and type-level errors.
ResolverError covers failures during the resolution process itself:
network errors, invalid documents, unsupported methods, etc.
Variants§
UnsupportedMethod(String)
The DID method is not supported by this resolver.
DIDError(DIDError)
Resolution failed due to a DID-level error (parsing, validation).
DocumentError(DocumentError)
Resolution failed due to a document-level error (key expansion, encoding).
ResolutionFailed(String)
Resolution failed due to a network or IO error.
InvalidDocument(String)
The resolved document was malformed or invalid.
Other
Wraps an arbitrary error source.
Implementations§
Source§impl ResolverError
impl ResolverError
Trait Implementations§
Source§impl Debug for ResolverError
impl Debug for ResolverError
Source§impl Display for ResolverError
impl Display for ResolverError
Source§impl Error for ResolverError
impl Error for ResolverError
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 From<DIDError> for ResolverError
impl From<DIDError> for ResolverError
Source§fn from(source: DIDError) -> ResolverError
fn from(source: DIDError) -> ResolverError
Converts to this type from the input type.
Source§impl From<DocumentError> for ResolverError
impl From<DocumentError> for ResolverError
Source§fn from(source: DocumentError) -> ResolverError
fn from(source: DocumentError) -> ResolverError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResolverError
impl !RefUnwindSafe for ResolverError
impl Send for ResolverError
impl Sync for ResolverError
impl Unpin for ResolverError
impl UnsafeUnpin for ResolverError
impl !UnwindSafe for ResolverError
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T.Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.