Struct gitlab::api::retry::Client[][src]

pub struct Client<C> { /* fields omitted */ }
Expand description

A wrapper around a client to perform exponential backoff while retrying errors.

Notes

Currently, the wrapping is not 100% compatible, however the gaps should not be common. Of note is that the HTTP version is 1.1 since there is not a way to query the version from an existing builder. Also, all requested extensions are ignored since they cannot be cloned reliably. In the future, requests with extensions will be passed through, but without any backoff support.

Implementations

Create a client which retries in the face of service errors with an exponential backoff.

Trait Implementations

Send a REST query.

The errors which may occur for this client.

Get the URL for the endpoint for the client. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more