Skip to main content

SignerFactory

Trait SignerFactory 

Source
pub trait SignerFactory: Send + Sync {
    // Required method
    fn build<'life0, 'life1, 'async_trait>(
        &'life0 self,
        upstream: &'life1 Upstream,
    ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn Signer>, SignerError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Factory that builds upstream-specific signers.

Required Methods§

Source

fn build<'life0, 'life1, 'async_trait>( &'life0 self, upstream: &'life1 Upstream, ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn Signer>, SignerError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Builds a signer for the selected upstream.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§