pub struct KeyPoolExecutor<'a, C, S>where
S: KeyPoolStorage,{ /* private fields */ }Implementations§
Source§impl<'a, C, S> KeyPoolExecutor<'a, C, S>where
S: KeyPoolStorage,
impl<'a, C, S> KeyPoolExecutor<'a, C, S>where
S: KeyPoolStorage,
pub fn new( storage: &'a S, selector: KeySelector<S::Key, S::Domain>, options: Arc<PoolOptions>, ) -> Self
Trait Implementations§
Source§impl<'a, C: Clone, S> Clone for KeyPoolExecutor<'a, C, S>
impl<'a, C: Clone, S> Clone for KeyPoolExecutor<'a, C, S>
Source§fn clone(&self) -> KeyPoolExecutor<'a, C, S>
fn clone(&self) -> KeyPoolExecutor<'a, C, S>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a, C: Debug, S> Debug for KeyPoolExecutor<'a, C, S>
impl<'a, C: Debug, S> Debug for KeyPoolExecutor<'a, C, S>
Source§impl<'client, C, S> RequestExecutor<C> for KeyPoolExecutor<'client, C, S>
impl<'client, C, S> RequestExecutor<C> for KeyPoolExecutor<'client, C, S>
type Error = KeyPoolError<<S as KeyPoolStorage>::Error, <C as ApiClient>::Error>
fn execute<'life0, 'life1, 'async_trait, A>(
&'life0 self,
client: &'life1 C,
request: ApiRequest<A>,
id: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<A::Response, Self::Error>> + Send + 'async_trait>>where
A: ApiSelection + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute_many<'life0, 'life1, 'async_trait, A, I>( &'life0 self, client: &'life1 C, request: ApiRequest<A>, ids: Vec<I>, ) -> Pin<Box<dyn Future<Output = HashMap<I, Result<A::Response, Self::Error>>> + Send + 'async_trait>>
Auto Trait Implementations§
impl<'a, C, S> Freeze for KeyPoolExecutor<'a, C, S>
impl<'a, C, S> !RefUnwindSafe for KeyPoolExecutor<'a, C, S>
impl<'a, C, S> Send for KeyPoolExecutor<'a, C, S>
impl<'a, C, S> Sync for KeyPoolExecutor<'a, C, S>
impl<'a, C, S> Unpin for KeyPoolExecutor<'a, C, S>where
<<S as KeyPoolStorage>::Key as ApiKey>::IdType: Unpin,
C: Unpin,
<S as KeyPoolStorage>::Domain: Unpin,
impl<'a, C, S> !UnwindSafe for KeyPoolExecutor<'a, C, 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