Struct torn_key_pool::KeyPoolExecutor
source · 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,
Trait Implementations§
source§impl<'a, C: Clone, S> Clone for KeyPoolExecutor<'a, C, S>where
S: KeyPoolStorage + Clone,
S::Key: Clone,
S::Domain: Clone,
impl<'a, C: Clone, S> Clone for KeyPoolExecutor<'a, C, S>where S: KeyPoolStorage + Clone, S::Key: Clone, S::Domain: Clone,
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>where
S: KeyPoolStorage + Debug,
S::Key: Debug,
S::Domain: Debug,
impl<'a, C: Debug, S> Debug for KeyPoolExecutor<'a, C, S>where S: KeyPoolStorage + Debug, S::Key: Debug, S::Domain: Debug,
source§impl<'client, C, S> RequestExecutor<C> for KeyPoolExecutor<'client, C, S>where
C: ApiClient,
S: KeyPoolStorage + 'static,
impl<'client, C, S> RequestExecutor<C> for KeyPoolExecutor<'client, C, S>where C: ApiClient, S: KeyPoolStorage + 'static,
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<ApiResponse, Self::Error>> + '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<ApiResponse, Self::Error>>> + 'async_trait>>where A: ApiSelection + 'async_trait, I: ToString + Hash + Eq + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
source§impl<'client, C, S> RequestExecutor<C> for KeyPoolExecutor<'client, C, S>where
C: ApiClient,
S: KeyPoolStorage + Send + Sync + 'static,
impl<'client, C, S> RequestExecutor<C> for KeyPoolExecutor<'client, C, S>where C: ApiClient, S: KeyPoolStorage + Send + Sync + 'static,
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<ApiResponse, 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<ApiResponse, Self::Error>>> + Send + 'async_trait>>where A: ApiSelection + 'async_trait, I: ToString + Hash + Eq + Send + Sync + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Auto Trait Implementations§
impl<'a, C, S> RefUnwindSafe for KeyPoolExecutor<'a, C, S>where C: RefUnwindSafe, S: RefUnwindSafe, <S as KeyPoolStorage>::Domain: RefUnwindSafe, <<S as KeyPoolStorage>::Key as ApiKey>::IdType: RefUnwindSafe,
impl<'a, C, S> Send for KeyPoolExecutor<'a, C, S>where C: Send, S: Sync,
impl<'a, C, S> Sync for KeyPoolExecutor<'a, C, S>where C: Sync, S: Sync,
impl<'a, C, S> Unpin for KeyPoolExecutor<'a, C, S>where C: Unpin, <S as KeyPoolStorage>::Domain: Unpin, <<S as KeyPoolStorage>::Key as ApiKey>::IdType: Unpin,
impl<'a, C, S> UnwindSafe for KeyPoolExecutor<'a, C, S>where C: UnwindSafe, S: RefUnwindSafe, <S as KeyPoolStorage>::Domain: UnwindSafe, <<S as KeyPoolStorage>::Key as ApiKey>::IdType: UnwindSafe,
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