Skip to main content

ProviderType

Trait ProviderType 

Source
pub trait ProviderType<T: Target>: Send {
    // Required method
    fn request(
        &self,
        target: T,
    ) -> impl Future<Output = Result<HTTPResponse, Error>>;
}

Required Methods§

Source

fn request( &self, target: T, ) -> impl Future<Output = Result<HTTPResponse, Error>>

request to target and return http response

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> ProviderType<T> for Provider<T>
where T: Target + Send,