Trait tokio_rustls_acme::AccountCache

source ·
pub trait AccountCache: Send + Sync {
    type EA: Debug;

    // Required methods
    fn load_account<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        contact: &'life1 [String],
        directory_url: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, Self::EA>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn store_account<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        contact: &'life1 [String],
        directory_url: &'life2 str,
        account: &'life3 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::EA>> + 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_account<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, contact: &'life1 [String], directory_url: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, Self::EA>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn store_account<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, contact: &'life1 [String], directory_url: &'life2 str, account: &'life3 [u8], ) -> Pin<Box<dyn Future<Output = Result<(), Self::EA>> + 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> AccountCache for CompositeCache<C, A>

§

type EA = <A as AccountCache>::EA

source§

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

§

type EA = EA

source§

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

§

type EA = EA

source§

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

§

type EA = Error

source§

impl<T: AccountCache> AccountCache for BoxedErrCache<T>
where <T as AccountCache>::EA: 'static,

§

type EA = Box<dyn Debug>