[][src]Function async_listen::error_hint

pub fn error_hint(e: &Error) -> ErrorHint

Returns a hint structure that can be formatter to the log output

Example

use async_listen::error_hint;
eprintln!("Error: {}. {}", e, error_hint(&e));

Error message might look like:

Error: Too many open files (os error 24). Increase per-process open file limit https://bit.ly/async-err#EMFILE

See error description for a list of the errors that can return a hint.

See ErrorHint for more info on customizing the output