pub struct ManagedTlsCertSource { /* private fields */ }Expand description
A TlsCertSource that provides managed server certs (ACME resolver) and/or mTLS client
verification, composed from the pieces in acme/mtls. Build it with
ManagedTlsCertSource::builder.
Implementations§
Source§impl ManagedTlsCertSource
impl ManagedTlsCertSource
pub fn builder() -> ManagedTlsBuilder
Trait Implementations§
Source§impl TlsCertSource for ManagedTlsCertSource
impl TlsCertSource for ManagedTlsCertSource
Source§fn load(&self) -> Result<TlsMaterial, TlsError>
fn load(&self) -> Result<TlsMaterial, TlsError>
Load a single server certificate chain + key. Used unless
Self::resolver
returns Some (in which case the core never calls this).Source§fn resolver(&self) -> Option<Arc<dyn ResolvesServerCert>>
fn resolver(&self) -> Option<Arc<dyn ResolvesServerCert>>
Optional dynamic server-cert resolver. When
Some, the core builds the
ServerConfig with this resolver INSTEAD of load() (so the cert can rotate
at runtime without rebuilding the acceptor — enterprise hitless ACME), and
advertises the acme-tls/1 ALPN so an on-listener TLS-ALPN-01 challenge can
negotiate on the same port. Default None → the OPEN single-cert path.Source§fn client_verifier(&self) -> Option<Arc<dyn ClientCertVerifier>>
fn client_verifier(&self) -> Option<Arc<dyn ClientCertVerifier>>
Optional client-certificate verifier. When
Some, the listener requires and
verifies client certificates (mTLS / managed PKI). Default None → no client
auth, exactly as before.Auto Trait Implementations§
impl !RefUnwindSafe for ManagedTlsCertSource
impl !UnwindSafe for ManagedTlsCertSource
impl Freeze for ManagedTlsCertSource
impl Send for ManagedTlsCertSource
impl Sync for ManagedTlsCertSource
impl Unpin for ManagedTlsCertSource
impl UnsafeUnpin for ManagedTlsCertSource
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.