Struct indy_vdr::resolver::pool::PoolResolver
source · pub struct PoolResolver<T: Pool> { /* private fields */ }
Expand description
DID (URL) Resolver interface for a pool compliant with did:indy method spec
The resolver interface is bound to a specific indy network and does not evaluate
the namespace part of the DID. You need to create a resolver instance for each
indy network you want to support.
The PoolResolver
uses async/await.
Implementations§
source§impl<T: Pool> PoolResolver<T>
impl<T: Pool> PoolResolver<T>
pub fn new(pool: T) -> PoolResolver<T>
sourcepub async fn dereference(
&self,
did_url: &str,
cache: Option<Cache<String, (String, RequestResultMeta)>>
) -> VdrResult<String>
pub async fn dereference( &self, did_url: &str, cache: Option<Cache<String, (String, RequestResultMeta)>> ) -> VdrResult<String>
Dereference a DID Url and return a serialized DereferencingResult
Auto Trait Implementations§
impl<T> Freeze for PoolResolver<T>where
T: Freeze,
impl<T> RefUnwindSafe for PoolResolver<T>where
T: RefUnwindSafe,
impl<T> Send for PoolResolver<T>where
T: Send,
impl<T> Sync for PoolResolver<T>where
T: Sync,
impl<T> Unpin for PoolResolver<T>where
T: Unpin,
impl<T> UnwindSafe for PoolResolver<T>where
T: 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
Mutably borrows from an owned value. Read more