Struct poem::listener::acme::AutoCertAcceptor
source · pub struct AutoCertAcceptor<T> { /* private fields */ }
Available on crate features
server
and acme
only.Expand description
A ACME acceptor.
Trait Implementations
sourceimpl<T: Acceptor> Acceptor for AutoCertAcceptor<T>
impl<T: Acceptor> Acceptor for AutoCertAcceptor<T>
type Io = HandshakeStream<TlsStream<<T as Acceptor>::Io>>
type Io = HandshakeStream<TlsStream<<T as Acceptor>::Io>>
IO stream type.
sourcefn local_addr(&self) -> Vec<LocalAddr> ⓘ
fn local_addr(&self) -> Vec<LocalAddr> ⓘ
Returns the local address that this listener is bound to.
Auto Trait Implementations
impl<T> !RefUnwindSafe for AutoCertAcceptor<T>
impl<T> Send for AutoCertAcceptor<T>where
T: Send,
impl<T> Sync for AutoCertAcceptor<T>where
T: Sync,
impl<T> Unpin for AutoCertAcceptor<T>where
T: Unpin,
impl<T> !UnwindSafe for AutoCertAcceptor<T>
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