Struct salvo::prelude::JoinedListener
source · pub struct JoinedListener<A, B> { /* private fields */ }
Expand description
JoinedListener
Trait Implementations§
source§impl<A, B> Accept for JoinedListener<A, B>where
A: 'static + Accept + Send + Unpin,
B: 'static + Accept + Send + Unpin,
<A as Accept>::Conn: Transport,
<B as Accept>::Conn: Transport,
impl<A, B> Accept for JoinedListener<A, B>where
A: 'static + Accept + Send + Unpin,
B: 'static + Accept + Send + Unpin,
<A as Accept>::Conn: Transport,
<B as Accept>::Conn: Transport,
§type Conn = JoinedStream<<A as Accept>::Conn, <B as Accept>::Conn>
type Conn = JoinedStream<<A as Accept>::Conn, <B as Accept>::Conn>
The connection type that can be accepted.
source§fn poll_accept(
self: Pin<&mut JoinedListener<A, B>>,
cx: &mut Context<'_>
) -> Poll<Option<Result<<JoinedListener<A, B> as Accept>::Conn, <JoinedListener<A, B> as Accept>::Error>>>
fn poll_accept(
self: Pin<&mut JoinedListener<A, B>>,
cx: &mut Context<'_>
) -> Poll<Option<Result<<JoinedListener<A, B> as Accept>::Conn, <JoinedListener<A, B> as Accept>::Error>>>
Poll to accept the next connection.
source§impl<A, B> Listener for JoinedListener<A, B>where
A: 'static + Accept + Send + Unpin,
B: 'static + Accept + Send + Unpin,
<A as Accept>::Conn: Transport,
<B as Accept>::Conn: Transport,
impl<A, B> Listener for JoinedListener<A, B>where
A: 'static + Accept + Send + Unpin,
B: 'static + Accept + Send + Unpin,
<A as Accept>::Conn: Transport,
<B as Accept>::Conn: Transport,
source§fn join<T>(self, other: T) -> JoinedListener<Self, T>where
Self: Sized,
fn join<T>(self, other: T) -> JoinedListener<Self, T>where
Self: Sized,
Join current Listener with the other.