Constants§
- DEAD_
CONNECTION_ TIMEOUT - Default time to wait before considering a connection dead (60 seconds)
- DEFAULT_
TIMEOUT - Default timeout duration for network operations (5 seconds)
- HANDSHAKE_
TIMEOUT - Default timeout duration for handshake operations (10 seconds)
- KEEPALIVE_
INTERVAL - Default keep-alive interval (15 seconds)
- SHUTDOWN_
TIMEOUT - Default timeout duration for graceful shutdown (30 seconds)
Functions§
- with_
timeout - Wrap an async operation with a timeout
- with_
timeout_ error - Wrap an async operation with a timeout, converting Elapsed errors to ProtocolError::Timeout