is

Function is 

Source
pub fn is(err: &Error, code: Code) -> bool
Expand description

Checks if an error has the given code.