pub struct IncomingStream<'a, L>where
    L: Listener,{ /* private fields */ }Expand description
An incoming stream.
Used with serve and IntoMakeServiceWithConnectInfo.
Implementations§
Source§impl<L> IncomingStream<'_, L>where
    L: Listener,
 
impl<L> IncomingStream<'_, L>where
    L: Listener,
Trait Implementations§
Source§impl Connected<IncomingStream<'_, TcpListener>> for SocketAddr
 
impl Connected<IncomingStream<'_, TcpListener>> for SocketAddr
Source§fn connect_info(stream: IncomingStream<'_, TcpListener>) -> Self
 
fn connect_info(stream: IncomingStream<'_, TcpListener>) -> Self
Create type holding information about the connection.
Source§impl<'a, L, F> Connected<IncomingStream<'a, TapIo<L, F>>> for L::Addr
 
impl<'a, L, F> Connected<IncomingStream<'a, TapIo<L, F>>> for L::Addr
Source§fn connect_info(stream: IncomingStream<'a, TapIo<L, F>>) -> Self
 
fn connect_info(stream: IncomingStream<'a, TapIo<L, F>>) -> Self
Create type holding information about the connection.
Source§impl<'a, L> Debug for IncomingStream<'a, L>
 
impl<'a, L> Debug for IncomingStream<'a, L>
Source§impl<H, T, S, L> Service<IncomingStream<'_, L>> for HandlerService<H, T, S>
 
impl<H, T, S, L> Service<IncomingStream<'_, L>> for HandlerService<H, T, S>
Source§type Response = HandlerService<H, T, S>
 
type Response = HandlerService<H, T, S>
Responses given by the service.
Source§type Error = Infallible
 
type Error = Infallible
Errors produced by the service.
Source§type Future = Ready<Result<<HandlerService<H, T, S> as Service<IncomingStream<'_, L>>>::Response, <HandlerService<H, T, S> as Service<IncomingStream<'_, L>>>::Error>>
 
type Future = Ready<Result<<HandlerService<H, T, S> as Service<IncomingStream<'_, L>>>::Response, <HandlerService<H, T, S> as Service<IncomingStream<'_, L>>>::Error>>
The future response value.
Source§impl<L> Service<IncomingStream<'_, L>> for MethodRouter<()>where
    L: Listener,
 
impl<L> Service<IncomingStream<'_, L>> for MethodRouter<()>where
    L: Listener,
Source§type Response = MethodRouter
 
type Response = MethodRouter
Responses given by the service.
Source§type Error = Infallible
 
type Error = Infallible
Errors produced by the service.
Source§type Future = Ready<Result<<MethodRouter as Service<IncomingStream<'_, L>>>::Response, <MethodRouter as Service<IncomingStream<'_, L>>>::Error>>
 
type Future = Ready<Result<<MethodRouter as Service<IncomingStream<'_, L>>>::Response, <MethodRouter as Service<IncomingStream<'_, L>>>::Error>>
The future response value.
Source§impl<L> Service<IncomingStream<'_, L>> for Router<()>where
    L: Listener,
 
impl<L> Service<IncomingStream<'_, L>> for Router<()>where
    L: Listener,
Source§type Error = Infallible
 
type Error = Infallible
Errors produced by the service.
Source§type Future = Ready<Result<<Router as Service<IncomingStream<'_, L>>>::Response, <Router as Service<IncomingStream<'_, L>>>::Error>>
 
type Future = Ready<Result<<Router as Service<IncomingStream<'_, L>>>::Response, <Router as Service<IncomingStream<'_, L>>>::Error>>
The future response value.
Auto Trait Implementations§
impl<'a, L> Freeze for IncomingStream<'a, L>
impl<'a, L> RefUnwindSafe for IncomingStream<'a, L>
impl<'a, L> Send for IncomingStream<'a, L>
impl<'a, L> Sync for IncomingStream<'a, L>
impl<'a, L> Unpin for IncomingStream<'a, L>
impl<'a, L> UnwindSafe for IncomingStream<'a, L>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more