pub struct ThrottledKeyPoolExecutor<'p, S>where
S: KeyPoolStorage,{ /* private fields */ }Implementations§
Source§impl<'p, S> ThrottledKeyPoolExecutor<'p, S>where
S: KeyPoolStorage,
impl<'p, S> ThrottledKeyPoolExecutor<'p, S>where
S: KeyPoolStorage,
Trait Implementations§
Source§impl<S> BulkExecutor for ThrottledKeyPoolExecutor<'_, S>where
S: KeyPoolStorage + 'static,
impl<S> BulkExecutor for ThrottledKeyPoolExecutor<'_, S>where
S: KeyPoolStorage + 'static,
type Error = <S as KeyPoolStorage>::Error
Source§fn execute<R>(
self,
requests: impl IntoIterator<Item = R>,
) -> impl Stream<Item = (R::Discriminant, Result<ApiResponse, Self::Error>)> + Unpinwhere
R: IntoRequest,
fn execute<R>(
self,
requests: impl IntoIterator<Item = R>,
) -> impl Stream<Item = (R::Discriminant, Result<ApiResponse, Self::Error>)> + Unpinwhere
R: IntoRequest,
Generate response stream from a set of api requests.
Source§fn fetch_many<R>(
self,
requests: impl IntoIterator<Item = R>,
) -> impl Stream<Item = (<R as IntoRequest>::Discriminant, Result<<R as IntoRequest>::Response, Self::Error>)> + Unpinwhere
R: IntoRequest,
fn fetch_many<R>(
self,
requests: impl IntoIterator<Item = R>,
) -> impl Stream<Item = (<R as IntoRequest>::Discriminant, Result<<R as IntoRequest>::Response, Self::Error>)> + Unpinwhere
R: IntoRequest,
Generate a stream of deserialised responsed based on a set of api requests.
Source§impl<S> Clone for ThrottledKeyPoolExecutor<'_, S>where
S: KeyPoolStorage,
impl<S> Clone for ThrottledKeyPoolExecutor<'_, S>where
S: KeyPoolStorage,
Auto Trait Implementations§
impl<'p, S> Freeze for ThrottledKeyPoolExecutor<'p, S>
impl<'p, S> !RefUnwindSafe for ThrottledKeyPoolExecutor<'p, S>
impl<'p, S> Send for ThrottledKeyPoolExecutor<'p, S>
impl<'p, S> Sync for ThrottledKeyPoolExecutor<'p, S>
impl<'p, S> Unpin for ThrottledKeyPoolExecutor<'p, S>
impl<'p, S> !UnwindSafe for ThrottledKeyPoolExecutor<'p, S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more