Skip to main content

RecordResolver

Trait RecordResolver 

Source
pub trait RecordResolver: Send + Sync {
    // Required method
    fn resolve<'life0, 'life1, 'async_trait, T>(
        &'life0 self,
        aturi: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>
       where T: DeserializeOwned + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Trait for resolving AT Protocol records by at:// URI.

Implementations perform the network lookup and deserialize the response into the requested type.

Required Methods§

Source

fn resolve<'life0, 'life1, 'async_trait, T>( &'life0 self, aturi: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>
where T: DeserializeOwned + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Resolve an AT URI to a typed record.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§