web5_rust::dids

Trait DidResolver

Source
pub trait DidResolver:
    DynClone
    + Debug
    + Sync
    + Send {
    // Required method
    fn resolve<'life0, 'life1, 'async_trait>(
        &'life0 self,
        did: &'life1 Did,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Box<dyn DidDocument>>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;

    // Provided methods
    fn resolve_key<'life0, 'life1, 'async_trait>(
        &'life0 self,
        kid: &'life1 DidKeyUri,
    ) -> Pin<Box<dyn Future<Output = Result<Option<DidKey>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn resolve_dwn_keys<'life0, 'life1, 'async_trait>(
        &'life0 self,
        did: &'life1 Did,
    ) -> Pin<Box<dyn Future<Output = Result<(PublicKey, PublicKey), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn get_endpoints<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        dids: &'life1 [&'life2 Did],
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Endpoint>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
}

Required Methods§

Source

fn resolve<'life0, 'life1, 'async_trait>( &'life0 self, did: &'life1 Did, ) -> Pin<Box<dyn Future<Output = Result<Option<Box<dyn DidDocument>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Provided Methods§

Source

fn resolve_key<'life0, 'life1, 'async_trait>( &'life0 self, kid: &'life1 DidKeyUri, ) -> Pin<Box<dyn Future<Output = Result<Option<DidKey>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn resolve_dwn_keys<'life0, 'life1, 'async_trait>( &'life0 self, did: &'life1 Did, ) -> Pin<Box<dyn Future<Output = Result<(PublicKey, PublicKey), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_endpoints<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, dids: &'life1 [&'life2 Did], ) -> Pin<Box<dyn Future<Output = Result<Vec<Endpoint>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§