pub trait RetryableClient: Client {
// Required method
fn sleep<'life0, 'async_trait>(
&'life0 self,
dur: Duration,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: '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::ParseResponseOutput, RetryableClientRespondEndpointUntilDoneError<Self::RespondError, EP::RenderRequestError, EP::ParseResponseError>>> + Send + 'async_trait>>
where EP: RetryableEndpoint + Send + Sync + 'async_trait,
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: '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 + 'async_trait,
PreRCB: FnMut(Request<Body>, Option<&RetryableEndpointRetry<EP::RetryReason>>) -> Request<Body> + Send + 'async_trait,
PostRCB: FnMut(&Response<Body>, Option<&RetryableEndpointRetry<EP::RetryReason>>) + Send + 'async_trait,
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}
Required Methods§
fn sleep<'life0, 'async_trait>(
&'life0 self,
dur: Duration,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: '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::ParseResponseOutput, RetryableClientRespondEndpointUntilDoneError<Self::RespondError, EP::RenderRequestError, EP::ParseResponseError>>> + Send + 'async_trait>>where
EP: RetryableEndpoint + Send + Sync + 'async_trait,
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: '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 + 'async_trait,
PreRCB: FnMut(Request<Body>, Option<&RetryableEndpointRetry<EP::RetryReason>>) -> Request<Body> + Send + 'async_trait,
PostRCB: FnMut(&Response<Body>, Option<&RetryableEndpointRetry<EP::RetryReason>>) + Send + 'async_trait,
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.