error

Function error 

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

Use old name for backward-compatibility. Generates an io::Error from the given string.