pub fn clone_io_error(err: &Error) -> ErrorExpand description
Clones an I/O error’s kind and message.
std::io::Error is not generally cloneable. The returned error preserves
the original io::ErrorKind and uses the original error’s display output
as its message.