Skip to main content

error

Function error 

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

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