pub struct Combined<A, B> { /* private fields */ }
Expand description
Listener for the Listener::combine
and AcceptorExt::combine
method.
Trait Implementations
type Io = CombinedStream<A::Io, B::Io>
type Io = CombinedStream<A::Io, B::Io>
IO stream type.
Returns the local address that this listener is bound to.
Create a acceptor instance.
Combine two listeners. Read more
fn rustls<S: IntoTlsConfigStream<RustlsConfig>>(
self,
config_stream: S
) -> RustlsListener<Self, S> where
Self: Sized,
fn rustls<S: IntoTlsConfigStream<RustlsConfig>>(
self,
config_stream: S
) -> RustlsListener<Self, S> where
Self: Sized,
This is supported on crate feature
rustls
only.Consume this listener and return a new TLS listener with rustls
.
fn native_tls<S: IntoTlsConfigStream<NativeTlsConfig>>(
self,
config_stream: S
) -> NativeTlsListener<Self, S> where
Self: Sized,
fn native_tls<S: IntoTlsConfigStream<NativeTlsConfig>>(
self,
config_stream: S
) -> NativeTlsListener<Self, S> where
Self: Sized,
This is supported on crate feature
native-tls
only.Consume this listener and return a new TLS listener with native-tls
.
Auto Trait Implementations
impl<A, B> RefUnwindSafe for Combined<A, B> where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> UnwindSafe for Combined<A, B> where
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
Wrap the acceptor in a Box.
fn rustls<S>(self, config_stream: S) -> RustlsAcceptor<Self, S> where
Self: Sized,
S: Stream<Item = RustlsConfig> + Send + Unpin + 'static,
fn rustls<S>(self, config_stream: S) -> RustlsAcceptor<Self, S> where
Self: Sized,
S: Stream<Item = RustlsConfig> + Send + Unpin + 'static,
This is supported on crate feature
rustls
only.Consume this acceptor and return a new TLS acceptor with rustls
.
fn native_tls<S>(self, config_stream: S) -> NativeTlsAcceptor<Self, S> where
Self: Sized,
S: Stream<Item = NativeTlsConfig> + Send + Unpin + 'static,
fn native_tls<S>(self, config_stream: S) -> NativeTlsAcceptor<Self, S> where
Self: Sized,
S: Stream<Item = NativeTlsConfig> + Send + Unpin + 'static,
This is supported on crate feature
native-tls
only.Consume this acceptor and return a new TLS acceptor with native-tls
.
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more