Skip to main content

ConfigSource

Trait ConfigSource 

Source
pub trait ConfigSource: Send + Sync {
    // Required method
    fn fetch<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<(Vec<u8>, String)>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Where the signed config and its signature come from.

Required Methods§

Source

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

The config bytes and the base64 signature.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§