Trait channel_loader::Loader[][src]

pub trait Loader<K: Key>: Default + Send + Sync + 'static {
    type Value: Send + Clone + 'static;
    type Error: Send + Clone + 'static;

    const MAX_DELAY: Duration;
    const MAX_BATCH_SIZE: usize;

    #[must_use]
    fn load<'life0, 'async_trait>(
        &'life0 self,
        keys: Vec<K>
    ) -> Pin<Box<dyn Future<Output = Result<HashMap<K, Self::Value>, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Associated Types

type Value: Send + Clone + 'static[src]

type Error: Send + Clone + 'static[src]

Loading content...

Associated Constants

Loading content...

Required methods

#[must_use]
fn load<'life0, 'async_trait>(
    &'life0 self,
    keys: Vec<K>
) -> Pin<Box<dyn Future<Output = Result<HashMap<K, Self::Value>, Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

Loading content...