[src]

Function std::io::standard_error

pub fn standard_error(kind: IoErrorKind) -> IoError

Creates a standard error for a commonly used flavor of error. The detail field of the returned error will always be None.

Example

use std::io;

let eof = io::standard_error(io::EndOfFile);
let einval = io::standard_error(io::InvalidInput);