Skip to main content

AcmeOrder

Trait AcmeOrder 

Source
pub trait AcmeOrder: Send {
    // Required methods
    fn pending_challenges<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<PendingChallenge>, AcmeError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn mark_ready<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        domain: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<(), AcmeError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn wait_ready<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<(), AcmeError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn finalize<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        csr_der: &'life1 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<String, AcmeError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn pending_challenges<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<Vec<PendingChallenge>, AcmeError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

One entry per authorization still pending (already-valid ones are skipped).

Source

fn mark_ready<'life0, 'life1, 'async_trait>( &'life0 mut self, domain: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<(), AcmeError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Tells the CA the TLS-ALPN-01 challenge for domain may be validated now.

Source

fn wait_ready<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<(), AcmeError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Polls until the order is ready; Err on invalid or timeout.

Source

fn finalize<'life0, 'life1, 'async_trait>( &'life0 mut self, csr_der: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = Result<String, AcmeError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Submits the CSR and downloads the PEM chain.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§