pub struct MemoizedCertificate<C> { /* private fields */ }Expand description
A CertificateConfig that computes the certificate and intermediates once, and then memoizes the results.
Implementations§
Source§impl<C> MemoizedCertificate<C>
impl<C> MemoizedCertificate<C>
Sourcepub fn new(base: C) -> Self
pub fn new(base: C) -> Self
Creates a MemoizedCertificate based on a certificate.
Trait Implementations§
Source§impl<C: CertificateConfig> CertificateConfig for MemoizedCertificate<C>
impl<C: CertificateConfig> CertificateConfig for MemoizedCertificate<C>
type Error = <C as CertificateConfig>::Error
Source§fn intermediates(&self) -> Result<Arc<Vec<X509>>, Self::Error>
fn intermediates(&self) -> Result<Arc<Vec<X509>>, Self::Error>
Computes the list of intermediate certificates.
Source§fn certificate(&self) -> Result<Arc<X509CertificateInfo>, Self::Error>
fn certificate(&self) -> Result<Arc<X509CertificateInfo>, Self::Error>
Computes the X509 leaf certificate
Source§fn is_dynamic(&self) -> bool
fn is_dynamic(&self) -> bool
Whether the certificate can change over time, ie Let’s Encrypt certificates.
Source§fn memoize(self) -> MemoizedCertificate<Self>where
Self: Sized,
fn memoize(self) -> MemoizedCertificate<Self>where
Self: Sized,
Returns a memoized CertificateConfig.
Source§fn cache(self) -> Result<CachedCertificate, Self::Error>where
Self: Sized,
fn cache(self) -> Result<CachedCertificate, Self::Error>where
Self: Sized,
Returns a cached CertificateConfig.
Auto Trait Implementations§
impl<C> !Freeze for MemoizedCertificate<C>
impl<C> RefUnwindSafe for MemoizedCertificate<C>where
C: RefUnwindSafe,
impl<C> Send for MemoizedCertificate<C>where
C: Send,
impl<C> Sync for MemoizedCertificate<C>where
C: Sync,
impl<C> Unpin for MemoizedCertificate<C>where
C: Unpin,
impl<C> UnwindSafe for MemoizedCertificate<C>where
C: UnwindSafe,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request