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