pub struct TicketNotifier(_);
Expand description

Indicate to the ratelimit consumer that their ticket has been granted and they may now send a request.

Implementations§

Signal to the ratelimiter consumer (an HTTP client) that a request may now be performed.

A receiver is returned. This must be stored and awaited so that ratelimiting backends can handle the headers that the API consumer will send back, thus completing the cycle.

Returns a None if the consumer has dropped their TicketReceiver half. The ticket is considered canceled.

Trait Implementations§

Formats the value using the given formatter. 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

Returns the argument unchanged.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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