TideRustlsExt

Trait TideRustlsExt 

Source
pub trait TideRustlsExt {
    // Required method
    fn acme<EC: 'static + Debug, EA: 'static + Debug>(
        self,
        config: AcmeConfig<EC, EA>,
    ) -> Self;
}
Expand description

Extension trait for tide_rustls::TlsListenerBuilder

With this trait imported, TlsListenerBuilder will have an acme method to set up a custom TLS acceptor that answers ACME tls-alpn-01 challenges.

Required Methods§

Source

fn acme<EC: 'static + Debug, EA: 'static + Debug>( self, config: AcmeConfig<EC, EA>, ) -> Self

Set up a custom TLS acceptor that answers ACME tls-alpn-01 challenges, using the specified configuration.

This creates an AcmeTlsAcceptor, which will start a background task to manage certificates via ACME.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<State> TideRustlsExt for TlsListenerBuilder<State>

Source§

fn acme<EC: 'static + Debug, EA: 'static + Debug>( self, config: AcmeConfig<EC, EA>, ) -> Self

Implementors§