Struct poem::listener::acme::AutoCertListener
source · pub struct AutoCertListener<T> { /* private fields */ }
Available on crate features
server
and acme-base
only.Expand description
A wrapper around an underlying listener which implements the ACME.
Trait Implementations§
source§impl<T: Listener> Listener for AutoCertListener<T>
impl<T: Listener> Listener for AutoCertListener<T>
§type Acceptor = AutoCertAcceptor<<T as Listener>::Acceptor>
type Acceptor = AutoCertAcceptor<<T as Listener>::Acceptor>
The acceptor type.
source§async fn into_acceptor(self) -> IoResult<Self::Acceptor>
async fn into_acceptor(self) -> IoResult<Self::Acceptor>
Create a acceptor instance.
source§fn 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
source§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,
Available on crate feature
rustls
only.Consume this listener and return a new TLS listener with
rustls
.source§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,
Available on crate feature
native-tls
only.Consume this listener and return a new TLS listener with
native-tls
.source§fn 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
.source§fn acme(self, auto_cert: AutoCert) -> AutoCertListener<Self>where
Self: Sized,
fn acme(self, auto_cert: AutoCert) -> AutoCertListener<Self>where
Self: Sized,
Consume this listener and return a new ACME listener. Read more
source§fn boxed(self) -> BoxListenerwhere
Self: Sized + 'static,
fn boxed(self) -> BoxListenerwhere
Self: Sized + 'static,
Wrap the listener in a
Box
.Auto Trait Implementations§
impl<T> Freeze for AutoCertListener<T>where
T: Freeze,
impl<T> !RefUnwindSafe for AutoCertListener<T>
impl<T> Send for AutoCertListener<T>where
T: Send,
impl<T> Sync for AutoCertListener<T>where
T: Sync,
impl<T> Unpin for AutoCertListener<T>where
T: Unpin,
impl<T> !UnwindSafe for AutoCertListener<T>
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> TowerCompatExt for T
impl<T> TowerCompatExt for T
source§fn compat<ResBody, Err, Fut>(self) -> TowerCompatEndpoint<Self>where
ResBody: Body + Send + Sync + 'static,
ResBody::Data: Into<Bytes> + Send + 'static,
ResBody::Error: StdError + Send + Sync + 'static,
Err: Into<Error>,
Self: Service<Request<BoxBody<Bytes, Error>>, Response = Response<ResBody>, Error = Err, Future = Fut> + Clone + Send + Sync + Sized + 'static,
Fut: Future<Output = Result<Response<ResBody>, Err>> + Send + 'static,
fn compat<ResBody, Err, Fut>(self) -> TowerCompatEndpoint<Self>where
ResBody: Body + Send + Sync + 'static,
ResBody::Data: Into<Bytes> + Send + 'static,
ResBody::Error: StdError + Send + Sync + 'static,
Err: Into<Error>,
Self: Service<Request<BoxBody<Bytes, Error>>, Response = Response<ResBody>, Error = Err, Future = Fut> + Clone + Send + Sync + Sized + 'static,
Fut: Future<Output = Result<Response<ResBody>, Err>> + Send + 'static,
Available on crate feature
tower-compat
only.Converts a tower service to a poem endpoint.