Trait channel_loader::Loader[][src]

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

    const MAX_DELAY: Duration;
    const MAX_BATCH_SIZE: i32;

    #[must_use]
    fn handle_task<'life0, 'async_trait>(
        &'life0 self,
        task: LoadTask<TaskStealer<K, Self>>
    ) -> Pin<Box<dyn Future<Output = LoadTask<CompletionReceipt<K, Self>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Associated Types

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

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

Associated Constants

Required methods

#[must_use]
fn handle_task<'life0, 'async_trait>(
    &'life0 self,
    task: LoadTask<TaskStealer<K, Self>>
) -> Pin<Box<dyn Future<Output = LoadTask<CompletionReceipt<K, Self>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Implementors