Method

Trait Method 

Source
pub trait Method: Send + Sync {
    // Required methods
    fn method_name(&self) -> &'static str;
    fn resolve(
        &self,
        did: Did,
    ) -> Pin<Box<dyn Future<Output = Result<Document, ResolutionError>> + Send + Sync>>;
}

Required Methods§

Source

fn method_name(&self) -> &'static str

Source

fn resolve( &self, did: Did, ) -> Pin<Box<dyn Future<Output = Result<Document, ResolutionError>> + Send + Sync>>

Attempt to resolve the provided DID to its DID document.

Implementors§