Function copy_stdio_error

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

It is not possible to copy std::io::Error directly because it doesn’t implement Copy trait. This function creates a new std::io::Error with the same error kind and a message copied from the original error.