pub trait RetryableClient: Client {
fn sleep<'life0, 'async_trait>(
&'life0 self,
dur: Duration
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn respond_endpoint_until_done<'life0, 'life1, 'async_trait, EP>(
&'life0 self,
endpoint: &'life1 EP
) -> Pin<Box<dyn Future<Output = Result<EP::ParseResponseOutput, RetryableClientRespondEndpointUntilDoneError<Self::RespondError, EP::RenderRequestError, EP::ParseResponseError>>> + Send + 'async_trait>>
where
EP: RetryableEndpoint + Send + Sync,
EP: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
{ ... }
fn respond_endpoint_until_done_with_callback<'life0, 'life1, 'async_trait, EP, PreRCB, PostRCB>(
&'life0 self,
endpoint: &'life1 EP,
pre_request_callback: PreRCB,
post_request_callback: PostRCB
) -> Pin<Box<dyn Future<Output = Result<EP::ParseResponseOutput, RetryableClientRespondEndpointUntilDoneError<Self::RespondError, EP::RenderRequestError, EP::ParseResponseError>>> + Send + 'async_trait>>
where
EP: RetryableEndpoint + Send + Sync,
PreRCB: FnMut(Request<Body>, Option<&RetryableEndpointRetry<EP::RetryReason>>) -> Request<Body> + Send,
PostRCB: FnMut(&Response<Body>, Option<&RetryableEndpointRetry<EP::RetryReason>>) + Send,
EP: 'async_trait,
PreRCB: 'async_trait,
PostRCB: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
{ ... }
}