[−][src]Struct hyper::server::conn::Serve
A stream mapping incoming IOs to new services.
Yields Connecting
s 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 Error + Send + Sync>>,
S: MakeServiceRef<I::Item, ReqBody = Body, ResBody = B>,
B: Payload,
E: H2Exec<<S::Service as Service>::Future, B>,
[src][+]
I: Stream,
I::Item: AsyncRead + AsyncWrite,
I::Error: Into<Box<dyn Error + Send + Sync>>,
S: MakeServiceRef<I::Item, ReqBody = Body, ResBody = B>,
B: Payload,
E: H2Exec<<S::Service as Service>::Future, B>,
Auto Trait Implementations
impl<I, S, E> Send for Serve<I, S, E> where
E: Send,
I: Send,
S: Send,
E: Send,
I: Send,
S: Send,
impl<I, S, E> Sync for Serve<I, S, E> where
E: Sync,
I: Sync,
S: Sync,
E: Sync,
I: Sync,
S: Sync,
Blanket Implementations
impl<T> From for T
[src][−]
impl<T, U> Into for T where
U: From<T>,
[src][−]
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src][−]
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src][−]
impl<T> Borrow for T where
T: ?Sized,
[src][−]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src][−]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src][−]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src][−]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src][−]
impl<T> Any for T where
T: 'static + ?Sized,
[src][−]
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src][−]
impl<T> StreamExt for T where
T: Stream + ?Sized,
[src][−]
T: Stream + ?Sized,
fn throttle(self, duration: Duration) -> Throttle<Self>
[src][−]
Throttle down the stream by enforcing a fixed delay between items. Read more
fn enumerate(self) -> Enumerate<Self>
[src][−]
Creates a new stream which gives the current iteration count as well as the next value. Read more
fn timeout(self, timeout: Duration) -> Timeout<Self>
[src][−]
Creates a new stream which allows self
until timeout
. Read more