Type Alias hyper::server::conn::Http2Server

source ·
type Http2Server<T, B, S, E> = Server<Rewind<T>, S, B, E>;

Aliased Type§

struct Http2Server<T, B, S, E> {
    exec: E,
    service: S,
    state: State<Rewind<T>, B>,
}

Fields§

§exec: E§service: S§state: State<Rewind<T>, B>

Implementations§

source§

impl<T, S, B, E> Server<T, S, B, E>where T: AsyncRead + AsyncWrite + Unpin, S: HttpService<Body, ResBody = B>, S::Error: Into<Box<dyn StdError + Send + Sync>>, B: HttpBody + 'static, E: ConnStreamExec<S::Future, B>,

source

pub(crate) fn new( io: T, service: S, config: &Config, exec: E ) -> Server<T, S, B, E>

source

pub(crate) fn graceful_shutdown(&mut self)

Trait Implementations§

source§

impl<T, S, B, E> Future for Server<T, S, B, E>where T: AsyncRead + AsyncWrite + Unpin, S: HttpService<Body, ResBody = B>, S::Error: Into<Box<dyn StdError + Send + Sync>>, B: HttpBody + 'static, E: ConnStreamExec<S::Future, B>,

§

type Output = Result<Dispatched, Error>

The type of value produced on completion.
source§

fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more
source§

impl<'__pin, T, S, B, E> Unpin for Server<T, S, B, E>where __Origin<'__pin, T, S, B, E>: Unpin, S: HttpService<Body>, B: HttpBody,