pub struct DidWeb<C>{ /* private fields */ }Expand description
A struct for resolving DID Web documents.
Implementations§
Source§impl DidWeb<HttpsConnector<HttpConnector>>
impl DidWeb<HttpsConnector<HttpConnector>>
Sourcepub fn new() -> DidWeb<HttpsConnector<HttpConnector>>
pub fn new() -> DidWeb<HttpsConnector<HttpConnector>>
Creates a new DidWeb resolver.
Trait Implementations§
Source§impl<C> DIDResolver for DidWeb<C>
impl<C> DIDResolver for DidWeb<C>
Source§fn resolve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
did: &'life1 str,
_options: &'life2 DIDResolutionOptions,
) -> Pin<Box<dyn Future<Output = ResolutionOutput> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn resolve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
did: &'life1 str,
_options: &'life2 DIDResolutionOptions,
) -> Pin<Box<dyn Future<Output = ResolutionOutput> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn dereference<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
did_url: &'life1 str,
_options: &'life2 DereferencingOptions,
) -> Pin<Box<dyn Future<Output = DereferencingOutput> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn dereference<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
did_url: &'life1 str,
_options: &'life2 DereferencingOptions,
) -> Pin<Box<dyn Future<Output = DereferencingOutput> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Dereferences a DID URL into its corresponding resource.
Source§impl Default for DidWeb<HttpsConnector<HttpConnector>>
impl Default for DidWeb<HttpsConnector<HttpConnector>>
Auto Trait Implementations§
impl<C> Freeze for DidWeb<C>where
C: Freeze,
impl<C> !RefUnwindSafe for DidWeb<C>
impl<C> Send for DidWeb<C>
impl<C> Sync for DidWeb<C>
impl<C> Unpin for DidWeb<C>where
C: Unpin,
impl<C> !UnwindSafe for DidWeb<C>
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