[][src]Struct roa::AddrStream

pub struct AddrStream<IO> {
    pub remote_addr: SocketAddr,
    pub stream: IO,
}

A transport returned yieled by AddrIncoming.

Fields

remote_addr: SocketAddr

The remote address of this stream.

stream: IO

The inner stream.

Methods

impl<IO> AddrStream<IO>[src]

pub fn new(remote_addr: SocketAddr, stream: IO) -> AddrStream<IO>[src]

Construct an AddrStream from an addr and a AsyncReadWriter.

Trait Implementations

impl<IO> AsyncRead for AddrStream<IO> where
    IO: Unpin + AsyncRead
[src]

impl<IO> AsyncWrite for AddrStream<IO> where
    IO: Unpin + AsyncWrite
[src]

impl<'_, S, E, IO> Service<&'_ AddrStream<IO>> for App<S, Arc<E>> where
    E: for<'a> Endpoint<'a, S>,
    IO: 'static + Send + Sync + Unpin + AsyncRead + AsyncWrite,
    S: State
[src]

type Response = HttpService<S, E>

Responses given by the service.

type Error = Error

Errors produced by the service.

type Future = Pin<Box<dyn Future<Output = Result<HttpService<S, E>, Error>> + 'static + Send>>

The future response value.

Auto Trait Implementations

impl<IO> RefUnwindSafe for AddrStream<IO> where
    IO: RefUnwindSafe

impl<IO> Send for AddrStream<IO> where
    IO: Send

impl<IO> Sync for AddrStream<IO> where
    IO: Sync

impl<IO> Unpin for AddrStream<IO> where
    IO: Unpin

impl<IO> UnwindSafe for AddrStream<IO> where
    IO: UnwindSafe

Blanket Implementations

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

impl<R> AsyncReadExt for R where
    R: AsyncRead + ?Sized
[src]

impl<W> AsyncWriteExt for W where
    W: AsyncWrite + ?Sized
[src]

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,