Skip to main content

HttpTransport

Trait HttpTransport 

Source
pub trait HttpTransport: Send + Sync {
    // Required method
    fn execute(
        &self,
        request: Request<Bytes>,
    ) -> BoxFuture<'_, HttpTransportResult>;
}
Expand description

The HTTP transport which the client sends its requests over

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T: HttpTransport + ?Sized> HttpTransport for &T

Source§

impl<T: HttpTransport + ?Sized> HttpTransport for Arc<T>

Source§

impl<T: HttpTransport + ?Sized> HttpTransport for Box<T>

Implementors§