Skip to main content

LocalStoreNamespace

Trait LocalStoreNamespace 

Source
pub trait LocalStoreNamespace: Send + Sync {
    // Required methods
    fn load_certificate<'life0, 'life1, 'async_trait>(
        &'life0 self,
        name: &'life1 DnsName,
    ) -> Pin<Box<dyn Future<Output = Result<Option<StoredCertificate>, StoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn list_certificates<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<StoredCertificate>, StoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn commit_certificate<'life0, 'life1, 'async_trait>(
        &'life0 self,
        cert: &'life1 StoredCertificate,
    ) -> Pin<Box<dyn Future<Output = Result<StoreRevision, StoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn remove_certificate<'life0, 'life1, 'async_trait>(
        &'life0 self,
        name: &'life1 DnsName,
    ) -> Pin<Box<dyn Future<Output = Result<StoreRevision, StoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn quarantine_certificate<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        cert: &'life1 StoredCertificate,
        reason: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<StoreRevision, StoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn load_ca<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Option<(StoreRevision, StoredLocalCa)>, StoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn compare_and_swap_ca<'life0, 'life1, 'async_trait>(
        &'life0 self,
        expected: Option<StoreRevision>,
        replacement: &'life1 StoredLocalCa,
    ) -> Pin<Box<dyn Future<Output = Result<StoreRevision, StoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn load_retry_state<'life0, 'life1, 'async_trait>(
        &'life0 self,
        name: &'life1 DnsName,
    ) -> Pin<Box<dyn Future<Output = Result<Option<StoredRetryState>, StoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn save_retry_state<'life0, 'life1, 'async_trait>(
        &'life0 self,
        state: &'life1 StoredRetryState,
    ) -> Pin<Box<dyn Future<Output = Result<StoreRevision, StoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn load_certificate<'life0, 'life1, 'async_trait>( &'life0 self, name: &'life1 DnsName, ) -> Pin<Box<dyn Future<Output = Result<Option<StoredCertificate>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn list_certificates<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<StoredCertificate>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn commit_certificate<'life0, 'life1, 'async_trait>( &'life0 self, cert: &'life1 StoredCertificate, ) -> Pin<Box<dyn Future<Output = Result<StoreRevision, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn remove_certificate<'life0, 'life1, 'async_trait>( &'life0 self, name: &'life1 DnsName, ) -> Pin<Box<dyn Future<Output = Result<StoreRevision, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn quarantine_certificate<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, cert: &'life1 StoredCertificate, reason: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<StoreRevision, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn load_ca<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Option<(StoreRevision, StoredLocalCa)>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn compare_and_swap_ca<'life0, 'life1, 'async_trait>( &'life0 self, expected: Option<StoreRevision>, replacement: &'life1 StoredLocalCa, ) -> Pin<Box<dyn Future<Output = Result<StoreRevision, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn load_retry_state<'life0, 'life1, 'async_trait>( &'life0 self, name: &'life1 DnsName, ) -> Pin<Box<dyn Future<Output = Result<Option<StoredRetryState>, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn save_retry_state<'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 StoredRetryState, ) -> Pin<Box<dyn Future<Output = Result<StoreRevision, StoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§