Expand description
Tools for asynchronous programming in Tokio applications
§Resource Pooling
Pool
, a shared resource pool
§Rate Limiting
RateLimiter
, a rate limiterMultiRateLimiter
, a key-based rate limiter
§Graceful Shutdown
ShutdownController
, a controller for graceful shutdownShutdownMonitor
, a monitor for graceful shutdown
§Stdin
recv_from_stdin
, a channel that receives data from stdin
Structs§
- Multi
Rate Limiter MultiRateLimiter
enables key-based rate limiting, where each key has its ownRateLimiter
.- Pool
- A shared resource pool
- Rate
Limiter RateLimiter
is a tool which can control the rate at which processing happens.- Shutdown
Controller - A
ShutdownController
is used to control the shutdown of an application. - Shutdown
Monitor - A
ShutdownMonitor
listens for the shutdown signal from aShutdownController
and tracks that the signal has been received.
Functions§
- recv_
from_ stdin - Returns a
mpsc::Receiver
that contains the input fromstdin