Skip to main content

Module conn

Module conn 

Available on crate feature net only.
Expand description

Connection utilities

Structs§

AcceptBackoff
Pause policy for a listener whose accept fails, such as on EMFILE.
ConnectionHealthWatcher
Watcher that can update and read the ConnectionHealth
LingeringClose
Bounds of a lingering close: after shutting down its own side, a connection keeps reading and discarding what its peer still sends before it is closed.
MaxConcurrency
Hint for the maximum number of concurrent requests/streams a connection can serve at once.

Enums§

ConnectionHealth
Health of the connection

Functions§

is_connection_error
Check if the error is a connection error, in which case the error can be ignored.