Trait StorageResolver

Source
pub trait StorageResolver {
    // Required method
    fn resolve_request<'life0, 'life1, 'async_trait, T>(
        &'life0 self,
        query: &'life1 mut Query,
    ) -> Pin<Box<dyn Future<Output = Option<Result<Response, HtsGetError>>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             T: 'async_trait + ResolveResponse,
             Self: 'async_trait;
}
Expand description

A trait which uses storage to resolve requests into responses.

Required Methods§

Source

fn resolve_request<'life0, 'life1, 'async_trait, T>( &'life0 self, query: &'life1 mut Query, ) -> Pin<Box<dyn Future<Output = Option<Result<Response, HtsGetError>>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, T: 'async_trait + ResolveResponse, Self: 'async_trait,

Resolve a request into a response.

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.

Implementations on Foreign Types§

Source§

impl StorageResolver for &[LocationEither]

Source§

fn resolve_request<'life0, 'life1, 'async_trait, T>( &'life0 self, query: &'life1 mut Query, ) -> Pin<Box<dyn Future<Output = Option<Result<Response, HtsGetError>>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, T: 'async_trait + ResolveResponse, &[LocationEither]: 'async_trait,

Implementors§