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).