Trait http_api_endpoint::RetryableEndpoint[][src]

pub trait RetryableEndpoint {
    type RetryReason: Send + Sync + Clone;
    type RenderRequestError: 'static + Error + Send + Sync;
    type ParseResponseOutput;
    type ParseResponseError: 'static + Error + Send + Sync;
    fn render_request(
        &self,
        retry: Option<&RetryableEndpointRetry<Self::RetryReason>>
    ) -> Result<Request<Vec<u8, Global>>, Self::RenderRequestError>;
fn parse_response(
        &self,
        response: Response<Vec<u8, Global>>,
        retry: Option<&RetryableEndpointRetry<Self::RetryReason>>
    ) -> Result<Result<Self::ParseResponseOutput, Self::RetryReason>, Self::ParseResponseError>; fn max_retry_count(&self) -> usize { ... }
fn next_retry_in(
        &self,
        retry: &RetryableEndpointRetry<Self::RetryReason>
    ) -> Duration { ... } }

Associated Types

Required methods

Provided methods

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Implementors