Skip to main content

HttpConnectorTransport

Trait HttpConnectorTransport 

pub trait HttpConnectorTransport<S>: Clone + Sealed {
    type Transport;

    // Required method
    fn into_transport(self, stream: S) -> Self::Transport;
}
Available on crate features dns and http-backend and http and std and tcp only.
Expand description

The transport an HttpConnectorLayer builds its HttpConnector on: the stream connector alone, or that stream next to an Http3Leg.

Required Associated Types§

type Transport

The transport connector of the HttpConnector.

Required Methods§

fn into_transport(self, stream: S) -> Self::Transport

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

§

impl<S, Q> HttpConnectorTransport<S> for Http3Leg<Q>
where Q: Clone,

Available on crate feature quic only.
§

impl<S> HttpConnectorTransport<S> for NoHttp3Leg

§

type Transport = S