pub struct DidWebResolver<F: DidDocFetcher> { /* private fields */ }Expand description
A Resolver that turns a did:web identifier into a dialable
TransportConfig.
The resolver’s name argument is the did:web identifier; the kind
constrains the desired socket (today only SocketKind::Quic has a
federated reach). Non-did:web names are rejected — chain this behind the
registry resolver (see ChainedResolver) so local service-name lookups
still work.
Implementations§
Source§impl<F: DidDocFetcher> DidWebResolver<F>
impl<F: DidDocFetcher> DidWebResolver<F>
Sourcepub async fn resolve_all(&self, did: &str) -> Result<Vec<DecodedEntry>>
pub async fn resolve_all(&self, did: &str) -> Result<Vec<DecodedEntry>>
Resolve a did:web identifier to its preference-ordered reach list.
Empty vec when the document has no transport service entries.
Sourcepub async fn resolve_document(&self, did: &str) -> Result<Value>
pub async fn resolve_document(&self, did: &str) -> Result<Value>
Resolve a did:web identifier to its raw DID document JSON.
resolve/resolve_all discard everything but transport reach; the #137
admission gate needs the full document to read verificationMethod (the
peer’s published Ed25519 keys). Reuses the same derive-URL + cached fetch
path — no new fetch/cache infra.
Trait Implementations§
Source§impl<F: DidDocFetcher> DidDocResolve for DidWebResolver<F>
impl<F: DidDocFetcher> DidDocResolve for DidWebResolver<F>
Source§impl<F: DidDocFetcher> Resolver for DidWebResolver<F>
impl<F: DidDocFetcher> Resolver for DidWebResolver<F>
Auto Trait Implementations§
impl<F> Freeze for DidWebResolver<F>where
F: Freeze,
impl<F> RefUnwindSafe for DidWebResolver<F>where
F: RefUnwindSafe,
impl<F> Send for DidWebResolver<F>
impl<F> Sync for DidWebResolver<F>
impl<F> Unpin for DidWebResolver<F>where
F: Unpin,
impl<F> UnsafeUnpin for DidWebResolver<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for DidWebResolver<F>where
F: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more