Trait salvo_core::listener::Listener
source · pub trait Listener: Accept {
fn join<T>(self, other: T) -> JoinedListener<Self, T>
where
Self: Sized,
{ ... }
}
Expand description
Listener trait
Provided Methods§
sourcefn 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.
Implementors§
impl Listener for AcmeListener
Available on crate feature
acme
only.impl Listener for TcpListener
impl Listener for UnixListener
Available on Unix only.
impl<A, B> Listener for JoinedListener<A, B>where
A: Accept + Send + Unpin + 'static,
B: Accept + Send + Unpin + 'static,
A::Conn: Transport,
B::Conn: Transport,
impl<C> Listener for NativeTlsListener<C>where
C: Stream,
C::Item: Into<Identity>,
Available on crate feature
native-tls
only.impl<C> Listener for OpensslListener<C>where
C: Stream,
C::Item: Into<OpensslConfig>,
Available on crate feature
openssl
only.impl<C> Listener for RustlsListener<C>where
C: Stream,
C::Item: Into<Arc<ServerConfig>>,
Available on crate feature
rustls
only.