Struct tokio_rustls_acme::caches::CompositeCache
source · pub struct CompositeCache<C: CertCache + Send + Sync, A: AccountCache + Send + Sync> {
pub cert_cache: C,
pub account_cache: A,
}
Fields§
§cert_cache: C
§account_cache: A
Implementations§
source§impl<C: CertCache + Send + Sync, A: AccountCache + Send + Sync> CompositeCache<C, A>
impl<C: CertCache + Send + Sync, A: AccountCache + Send + Sync> CompositeCache<C, A>
pub fn new(cert_cache: C, account_cache: A) -> Self
pub fn into_inner(self) -> (C, A)
Trait Implementations§
source§impl<C: CertCache + Send + Sync, A: AccountCache + Send + Sync> AccountCache for CompositeCache<C, A>
impl<C: CertCache + Send + Sync, A: AccountCache + Send + Sync> AccountCache for CompositeCache<C, A>
type EA = <A as AccountCache>::EA
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,
source§impl<C: CertCache + Send + Sync, A: AccountCache + Send + Sync> CertCache for CompositeCache<C, A>
impl<C: CertCache + Send + Sync, A: AccountCache + Send + Sync> CertCache for CompositeCache<C, A>
type EC = <C as CertCache>::EC
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,
Auto Trait Implementations§
impl<C, A> Freeze for CompositeCache<C, A>
impl<C, A> RefUnwindSafe for CompositeCache<C, A>where
C: RefUnwindSafe,
A: RefUnwindSafe,
impl<C, A> Send for CompositeCache<C, A>
impl<C, A> Sync for CompositeCache<C, A>
impl<C, A> Unpin for CompositeCache<C, A>
impl<C, A> UnwindSafe for CompositeCache<C, A>where
C: UnwindSafe,
A: 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