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 MultiRateLimiterenables key-based rate limiting, where each key has its ownRateLimiter.- Pool
- A shared resource pool
- Rate
Limiter RateLimiteris a tool which can control the rate at which processing happens.- Shutdown
Controller - A
ShutdownControlleris used to control the shutdown of an application. - Shutdown
Monitor - A
ShutdownMonitorlistens for the shutdown signal from aShutdownControllerand tracks that the signal has been received.
Functions§
- recv_
from_ stdin - Returns a
mpsc::Receiverthat contains the input fromstdin