Struct jsonrpsee_types::RequestIdGuard[][src]

pub struct RequestIdGuard { /* fields omitted */ }
Expand description

Keep track of request IDs.

Implementations

Create a new RequestIdGuard with the provided concurrency limit.

Attempts to get the next request ID.

Fails if request limit has been exceeded.

Attempts to get the n number next IDs that only counts as one request.

Fails if request limit has been exceeded.

Decrease the currently pending counter by one (saturated at 0).

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

Performs the conversion.

Performs the conversion.

Should always be Self

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.