[][src]Struct hyper::server::conn::Serve

#[must_use = "streams do nothing unless polled"]
pub struct Serve<I, S, E = Exec> { /* fields omitted */ }

A stream mapping incoming IOs to new services.

Yields Connectings that are futures that should be put on a reactor.

Methods

impl<I, S, E> Serve<I, S, E>[src]

pub fn incoming_ref(&self) -> &I[src]

Get a reference to the incoming stream.

pub fn incoming_mut(&mut self) -> &mut I[src]

Get a mutable reference to the incoming stream.

Trait Implementations

impl<I: Debug, S: Debug, E: Debug> Debug for Serve<I, S, E>[src]

impl<I, S, B, E> Stream for Serve<I, S, E> where
    I: Stream,
    I::Item: AsyncRead + AsyncWrite,
    I::Error: Into<Box<dyn StdError + Send + Sync>>,
    S: MakeServiceRef<I::Item, ReqBody = Body, ResBody = B>,
    B: Payload,
    E: H2Exec<<S::Service as Service>::Future, B>, 
[src]

type Item = Connecting<I::Item, S::Future, E>

The type of item this stream will yield on success.

type Error = Error

The type of error this stream may generate.

Auto Trait Implementations

impl<I, S, E> Send for Serve<I, S, E> where
    E: Send,
    I: Send,
    S: Send

impl<I, S, E> Unpin for Serve<I, S, E> where
    E: Unpin,
    I: Unpin,
    S: Unpin

impl<I, S, E> Sync for Serve<I, S, E> where
    E: Sync,
    I: Sync,
    S: Sync

impl<I, S, E> UnwindSafe for Serve<I, S, E> where
    E: UnwindSafe,
    I: UnwindSafe,
    S: UnwindSafe

impl<I, S, E> RefUnwindSafe for Serve<I, S, E> where
    E: RefUnwindSafe,
    I: RefUnwindSafe,
    S: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> StreamExt for T where
    T: Stream + ?Sized
[src]

impl<T> Erased for T