pub trait RetryableClient: Client {
// Required method
fn sleep<'life0, 'async_trait>(
&'life0 self,
dur: Duration
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>>
where 'life0: 'async_trait,
Self: 'async_trait;
// Provided methods
fn respond_endpoint_until_done<'life0, 'life1, 'async_trait, EP>(
&'life0 self,
endpoint: &'life1 EP
) -> Pin<Box<dyn Future<Output = Result<<EP as RetryableEndpoint>::ParseResponseOutput, RetryableClientRespondEndpointUntilDoneError<Self::RespondError, <EP as RetryableEndpoint>::RenderRequestError, <EP as RetryableEndpoint>::ParseResponseError>>> + Send + 'async_trait, Global>>
where 'life0: 'async_trait,
'life1: 'async_trait,
EP: RetryableEndpoint + Send + Sync + '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 as RetryableEndpoint>::ParseResponseOutput, RetryableClientRespondEndpointUntilDoneError<Self::RespondError, <EP as RetryableEndpoint>::RenderRequestError, <EP as RetryableEndpoint>::ParseResponseError>>> + Send + 'async_trait, Global>>
where 'life0: 'async_trait,
'life1: 'async_trait,
EP: RetryableEndpoint + Send + Sync + 'async_trait,
PreRCB: FnMut(Request<Vec<u8, Global>>, Option<&RetryableEndpointRetry<<EP as RetryableEndpoint>::RetryReason>>) -> Request<Vec<u8, Global>> + Send + 'async_trait,
PostRCB: FnMut(&Response<Vec<u8, Global>>, Option<&RetryableEndpointRetry<<EP as RetryableEndpoint>::RetryReason>>) + Send + 'async_trait,
Self: Sync + 'async_trait { ... }
}