Skip to main content

clone_io_error

Function clone_io_error 

Source
pub fn clone_io_error(err: &Error) -> Error
Expand description

Clones an I/O error’s kind and debug representation.

std::io::Error is not generally cloneable. The returned error preserves the original io::ErrorKind and uses the original error’s debug output as its message.