Struct netcore::transport::and_then::AndThen [−][src]
pub struct AndThen<T, F> { /* fields omitted */ }Expand description
An AndThen is a transport which applies a closure (F) to all connections created by the
underlying transport.
Trait Implementations
type Listener = AndThenStream<T::Listener, F>
type Listener = AndThenStream<T::Listener, F>
type Inbound = AndThenFuture<T::Inbound, Fut, F>
type Inbound = AndThenFuture<T::Inbound, Fut, F>
type Outbound = AndThenFuture<T::Outbound, Fut, F>
type Outbound = AndThenFuture<T::Outbound, Fut, F>
fn listen_on(
&self,
addr: NetworkAddress
) -> Result<(Self::Listener, NetworkAddress), Self::Error>
fn listen_on(
&self,
addr: NetworkAddress
) -> Result<(Self::Listener, NetworkAddress), Self::Error>
Listens on the given NetworkAddress, returning a stream of incoming connections. Read more
Dials the given NetworkAddress, returning a future for a pending outbound connection.