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,
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