pub struct KeyPoolExecutor<'p, S>where
S: KeyPoolStorage,{ /* private fields */ }Implementations§
Source§impl<'p, S> KeyPoolExecutor<'p, S>where
S: KeyPoolStorage,
impl<'p, S> KeyPoolExecutor<'p, S>where
S: KeyPoolStorage,
Trait Implementations§
Source§impl<S> BulkExecutor for KeyPoolExecutor<'_, S>where
S: KeyPoolStorage + 'static,
impl<S> BulkExecutor for KeyPoolExecutor<'_, 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> Executor for KeyPoolExecutor<'_, S>where
S: KeyPoolStorage + 'static,
impl<S> Executor for KeyPoolExecutor<'_, S>where
S: KeyPoolStorage + 'static,
type Error = <S as KeyPoolStorage>::Error
Source§async fn execute<R>(
self,
request: R,
) -> (R::Discriminant, Result<ApiResponse, Self::Error>)where
R: IntoRequest,
async fn execute<R>(
self,
request: R,
) -> (R::Discriminant, Result<ApiResponse, Self::Error>)where
R: IntoRequest,
Execute an api request.
Source§fn fetch<R>(
self,
request: R,
) -> impl Future<Output = Result<<R as IntoRequest>::Response, Self::Error>> + Sendwhere
R: IntoRequest,
fn fetch<R>(
self,
request: R,
) -> impl Future<Output = Result<<R as IntoRequest>::Response, Self::Error>> + Sendwhere
R: IntoRequest,
Execute a request and deserialise the associated response type.
Auto Trait Implementations§
impl<'p, S> Freeze for KeyPoolExecutor<'p, S>
impl<'p, S> !RefUnwindSafe for KeyPoolExecutor<'p, S>
impl<'p, S> Send for KeyPoolExecutor<'p, S>
impl<'p, S> Sync for KeyPoolExecutor<'p, S>
impl<'p, S> Unpin for KeyPoolExecutor<'p, S>
impl<'p, S> !UnwindSafe for KeyPoolExecutor<'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> 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