error

Function error 

Source
pub fn error<S>(err: S) -> Error
where S: ToString,
Expand description

Generates an io::Error from the given string.