Function std::io::standard_errorExperimental
[-]
[+]
[src]
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
fn main() { use std::io; let eof = io::standard_error(io::EndOfFile); let einval = io::standard_error(io::InvalidInput); }use std::io; let eof = io::standard_error(io::EndOfFile); let einval = io::standard_error(io::InvalidInput);