pub struct ProductionExecutor { /* private fields */ }Expand description
Production-grade request executor with retry logic and rate limiting
Implementations§
Source§impl ProductionExecutor
impl ProductionExecutor
Sourcepub fn new(
pool_config: PoolConfig,
rate_limit_config: RateLimitConfig,
retry_config: RetryConfig,
timeout: Duration,
) -> Result<Self>
pub fn new( pool_config: PoolConfig, rate_limit_config: RateLimitConfig, retry_config: RetryConfig, timeout: Duration, ) -> Result<Self>
Create a new production executor
Sourcepub async fn execute_request<T>(
&self,
request_builder: RequestBuilder,
) -> Result<T>where
T: DeserializeOwned,
pub async fn execute_request<T>(
&self,
request_builder: RequestBuilder,
) -> Result<T>where
T: DeserializeOwned,
Execute a request with retry logic and rate limiting
Sourcepub async fn get_metrics(&self) -> Metrics
pub async fn get_metrics(&self) -> Metrics
Get current metrics
Sourcepub async fn reset_metrics(&self)
pub async fn reset_metrics(&self)
Reset metrics
Auto Trait Implementations§
impl Freeze for ProductionExecutor
impl !RefUnwindSafe for ProductionExecutor
impl Send for ProductionExecutor
impl Sync for ProductionExecutor
impl Unpin for ProductionExecutor
impl !UnwindSafe for ProductionExecutor
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