Trait tokio_rustls_acme::CertCache

source ·
pub trait CertCache: Send + Sync {
    type EC: Debug;

    // Required methods
    fn load_cert<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        domains: &'life1 [String],
        directory_url: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, Self::EC>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn store_cert<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        domains: &'life1 [String],
        directory_url: &'life2 str,
        cert: &'life3 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::EC>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}

Required Associated Types§

Required Methods§

source

fn load_cert<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, domains: &'life1 [String], directory_url: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, Self::EC>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn store_cert<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, domains: &'life1 [String], directory_url: &'life2 str, cert: &'life3 [u8], ) -> Pin<Box<dyn Future<Output = Result<(), Self::EC>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Implementors§

source§

impl<C: CertCache + Send + Sync, A: AccountCache + Send + Sync> CertCache for CompositeCache<C, A>

§

type EC = <C as CertCache>::EC

source§

impl<EC: Debug, EA: Debug> CertCache for NoCache<EC, EA>

§

type EC = EC

source§

impl<EC: Debug, EA: Debug> CertCache for TestCache<EC, EA>

§

type EC = EC

source§

impl<P: AsRef<Path> + Send + Sync> CertCache for DirCache<P>

§

type EC = Error

source§

impl<T: CertCache> CertCache for BoxedErrCache<T>
where <T as CertCache>::EC: 'static,

§

type EC = Box<dyn Debug>