Trait miau::source::AsyncSource[][src]

pub trait AsyncSource {
#[must_use]    fn collect<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, ConfigurationError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn describe(&self) -> String; }

Represents asynchronous (non-blocking) config source.

Required methods

#[must_use]fn collect<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, ConfigurationError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Asynchronous function to fetch source data.

It uses async_trait which is required to implement AsyncSource.

fn describe(&self) -> String[src]

Description of the source.

Loading content...

Implementors

Loading content...