pub struct MultiResolver { /* private fields */ }Expand description
A multi-resolver for DID methods. This resolver manages multiple method-specific resolver. New resolvers can be added at runtime.
Implementations§
Source§impl MultiResolver
impl MultiResolver
Sourcepub fn new_with_resolvers(resolvers: Vec<Arc<dyn DIDMethodResolver>>) -> Self
pub fn new_with_resolvers(resolvers: Vec<Arc<dyn DIDMethodResolver>>) -> Self
Create a new MultiResolver with a list of resolvers
Sourcepub fn register_method<R>(&mut self, method: &str, resolver: R) -> &mut Self
pub fn register_method<R>(&mut self, method: &str, resolver: R) -> &mut Self
Register a new resolver for a specific DID method
Trait Implementations§
Source§impl Debug for MultiResolver
impl Debug for MultiResolver
Source§impl Default for MultiResolver
Available on non-WebAssembly only.
impl Default for MultiResolver
Available on non-WebAssembly only.
Source§impl SyncDIDResolver for MultiResolver
impl SyncDIDResolver for MultiResolver
impl Send for MultiResolver
Available on non-WebAssembly only.
impl Sync for MultiResolver
Available on non-WebAssembly only.
Auto Trait Implementations§
impl !Freeze for MultiResolver
impl RefUnwindSafe for MultiResolver
impl Unpin for MultiResolver
impl UnsafeUnpin for MultiResolver
impl UnwindSafe for MultiResolver
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