Skip to main content

classify_send_error

Function classify_send_error 

Source
pub fn classify_send_error(e: &Error) -> BeatOutcome
Expand description

Classify a send(2) error into a BeatOutcome.

Checks the raw OS error code before the ErrorKind match so that ENOBUFS (kernel buffer pressure, transient) is caught even when the toolchain maps it to ErrorKind::Other.