Struct hyper::http::h2::Http2Protocol [−][src]
pub struct Http2Protocol<C, S> where
C: NetworkConnector<Stream = S> + Send + 'static,
S: NetworkStream + Send + Clone, { /* fields omitted */ }
The Protocol
implementation that provides HTTP/2 messages (i.e. Http2Message
).
Methods
impl<C, S> Http2Protocol<C, S> where
C: NetworkConnector<Stream = S> + Send + 'static,
S: NetworkStream + Send + Clone,
[src]
impl<C, S> Http2Protocol<C, S> where
C: NetworkConnector<Stream = S> + Send + 'static,
S: NetworkStream + Send + Clone,
pub fn with_connector(connector: C) -> Http2Protocol<C, S>
[src]
pub fn with_connector(connector: C) -> Http2Protocol<C, S>
Create a new Http2Protocol
that will use the given NetworkConnector
to establish TCP
connections to the server.
Trait Implementations
impl<C, S> Protocol for Http2Protocol<C, S> where
C: NetworkConnector<Stream = S> + Send + 'static,
S: NetworkStream + Send + Clone,
[src]
impl<C, S> Protocol for Http2Protocol<C, S> where
C: NetworkConnector<Stream = S> + Send + 'static,
S: NetworkStream + Send + Clone,
fn new_message(
&self,
host: &str,
port: u16,
scheme: &str
) -> Result<Box<HttpMessage>>
[src]
fn new_message(
&self,
host: &str,
port: u16,
scheme: &str
) -> Result<Box<HttpMessage>>
Creates a fresh HttpMessage
bound to the given host, based on the given protocol scheme.
Auto Trait Implementations
impl<C, S> Send for Http2Protocol<C, S>
impl<C, S> Send for Http2Protocol<C, S>
impl<C, S> Sync for Http2Protocol<C, S> where
C: Sync,
impl<C, S> Sync for Http2Protocol<C, S> where
C: Sync,