pub struct Combined<A, B> { /* private fields */ }
Available on crate feature
server
only.Expand description
Listener for the Listener::combine
and AcceptorExt::combine
method.
Trait Implementations
sourceimpl<A: Acceptor, B: Acceptor> Acceptor for Combined<A, B>
impl<A: Acceptor, B: Acceptor> Acceptor for Combined<A, B>
sourceimpl<A: Listener, B: Listener> Listener for Combined<A, B>
impl<A: Listener, B: Listener> Listener for Combined<A, B>
sourcefn into_acceptor<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = IoResult<Self::Acceptor>> + Send + 'async_trait>>where
Self: 'async_trait,
fn into_acceptor<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = IoResult<Self::Acceptor>> + Send + 'async_trait>>where
Self: 'async_trait,
Create a acceptor instance.
sourcefn combine<T>(self, other: T) -> Combined<Self, T>where
Self: Sized,
fn combine<T>(self, other: T) -> Combined<Self, T>where
Self: Sized,
Combine two listeners. Read more
sourcefn 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,
Available on crate feature
rustls
only.Consume this listener and return a new TLS listener with
rustls
.sourcefn 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,
Available on crate feature
native-tls
only.Consume this listener and return a new TLS listener with
native-tls
.sourcefn openssl_tls<S: IntoTlsConfigStream<OpensslTlsConfig>>(
self,
config_stream: S
) -> OpensslTlsListener<Self, S>where
Self: Sized,
fn openssl_tls<S: IntoTlsConfigStream<OpensslTlsConfig>>(
self,
config_stream: S
) -> OpensslTlsListener<Self, S>where
Self: Sized,
Available on crate feature
openssl-tls
only.Consume this listener and return a new TLS listener with
openssl-tls
.sourcefn acme(self, auto_cert: AutoCert) -> AutoCertListener<Self>where
Self: Sized,
fn acme(self, auto_cert: AutoCert) -> AutoCertListener<Self>where
Self: Sized,
Available on crate feature
acme
only.Consume this listener and return a new ACME listener. Read more
sourcefn boxed(self) -> BoxListenerwhere
Self: Sized + 'static,
fn boxed(self) -> BoxListenerwhere
Self: Sized + 'static,
Wrap the listener in a
Box
.Auto Trait Implementations
impl<A, B> RefUnwindSafe for Combined<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Combined<A, B>where
A: Send,
B: Send,
impl<A, B> Sync for Combined<A, B>where
A: Sync,
B: Sync,
impl<A, B> Unpin for Combined<A, B>where
A: Unpin,
B: Unpin,
impl<A, B> UnwindSafe for Combined<A, B>where
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
sourceimpl<T> AcceptorExt for Twhere
T: Acceptor,
impl<T> AcceptorExt for Twhere
T: Acceptor,
sourcefn combine<T>(self, other: T) -> Combined<Self, T>where
Self: Sized,
fn combine<T>(self, other: T) -> Combined<Self, T>where
Self: Sized,
Available on crate feature
server
only.Combine two acceptors.
sourcefn boxed(self) -> BoxAcceptorwhere
Self: Sized + 'static,
fn boxed(self) -> BoxAcceptorwhere
Self: Sized + 'static,
Available on crate feature
server
only.Wrap the acceptor in a
Box
.sourcefn 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,
Available on crate features
server
and rustls
only.Consume this acceptor and return a new TLS acceptor with
rustls
.sourcefn 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,
Available on crate features
server
and native-tls
only.Consume this acceptor and return a new TLS acceptor with
native-tls
.sourcefn openssl_tls<S>(self, config_stream: S) -> OpensslTlsAcceptor<Self, S>where
Self: Sized,
S: Stream<Item = OpensslTlsConfig> + Send + Unpin + 'static,
fn openssl_tls<S>(self, config_stream: S) -> OpensslTlsAcceptor<Self, S>where
Self: Sized,
S: Stream<Item = OpensslTlsConfig> + Send + Unpin + 'static,
Available on crate features
server
and openssl-tls
only.Consume this acceptor and return a new TLS acceptor with
openssl-tls
.sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more