[][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]

Important traits for &'_ mut F
pub fn incoming_ref(&self) -> &I[src]

Get a reference to the incoming stream.

Important traits for &'_ mut F
pub fn incoming_mut(&mut self) -> &mut I[src]

Get a mutable reference to the incoming stream.

Trait Implementations

impl<I, S, E> Unpin for Serve<I, S, E> where
    __UnpinStructServe<I, S, E>: Unpin
[src]

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

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

type Item = Result<Connecting<IO, S::Future, E>>

Values yielded by the stream.

Auto Trait Implementations

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

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

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<S, T, E> TryStream for S where
    S: Stream<Item = Result<T, E>> + ?Sized
[src]

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

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

impl<S> TryStreamExt for S where
    S: TryStream + ?Sized
[src]