[][src]Trait valor_core::Loader

pub trait Loader: 'static {
    type Handler: RequestHandler;
#[must_use]    fn load<'life0, 'life1, 'async_trait>(
        &'life0 self,
        plugin: &'life1 Plugin
    ) -> Pin<Box<dyn Future<Output = LoadResult<Self>> + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

A Loader can fetch plugin handlers from various sources such as the network or the file system

Associated Types

Loading content...

Required methods

#[must_use]fn load<'life0, 'life1, 'async_trait>(
    &'life0 self,
    plugin: &'life1 Plugin
) -> Pin<Box<dyn Future<Output = LoadResult<Self>> + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

Loads the given plugin

Loading content...

Implementations on Foreign Types

impl Loader for ()[src]

A dummy loader

type Handler = ()

Loading content...

Implementors

Loading content...