[][src]Struct batchloader::BatchController

pub struct BatchController<'a, Key: Hash + Eq, Value, Error, Fut, Batcher, Delay, Delayer> { /* fields omitted */ }

Methods

impl<'a, Key, Value, Error, Fut, Batcher, Delay, Delayer> BatchController<'a, Key, Value, Error, Fut, Batcher, Delay, Delayer> where
    Key: Eq + Hash,
    Value: Clone,
    Error: Clone,
    Delayer: Fn() -> Delay,
    Delay: Future<Output = ()>,
    Batcher: Clone + Fn(KeySet<Key>) -> Fut,
    Fut: Future<Output = Result<ValueSet<Value>, Error>>, 
[src]

pub fn new(rules: &'a BatchRules<Batcher, Delayer>) -> Self[src]

pub fn load(
    &self,
    key: Key
) -> BatchFuture<'a, Key, Value, Error, Fut, Batcher, Delay>
[src]

Auto Trait Implementations

impl<'a, Key, Value, Error, Fut, Batcher, Delay, Delayer> RefUnwindSafe for BatchController<'a, Key, Value, Error, Fut, Batcher, Delay, Delayer> where
    Batcher: RefUnwindSafe,
    Delayer: RefUnwindSafe

impl<'a, Key, Value, Error, Fut, Batcher, Delay, Delayer> Send for BatchController<'a, Key, Value, Error, Fut, Batcher, Delay, Delayer> where
    Batcher: Sync,
    Delay: Send,
    Delayer: Sync,
    Error: Send,
    Fut: Send,
    Key: Send,
    Value: Send

impl<'a, Key, Value, Error, Fut, Batcher, Delay, Delayer> Sync for BatchController<'a, Key, Value, Error, Fut, Batcher, Delay, Delayer> where
    Batcher: Sync,
    Delay: Send,
    Delayer: Sync,
    Error: Send,
    Fut: Send,
    Key: Send,
    Value: Send

impl<'a, Key, Value, Error, Fut, Batcher, Delay, Delayer> Unpin for BatchController<'a, Key, Value, Error, Fut, Batcher, Delay, Delayer>

impl<'a, Key, Value, Error, Fut, Batcher, Delay, Delayer> UnwindSafe for BatchController<'a, Key, Value, Error, Fut, Batcher, Delay, Delayer> where
    Batcher: RefUnwindSafe,
    Delayer: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.