[−][src]Struct batchloader::BatchController
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]
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>>,
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]
&self,
key: Key
) -> BatchFuture<'a, Key, Value, Error, Fut, Batcher, Delay>
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,
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,
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,
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,
Batcher: RefUnwindSafe,
Delayer: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,