/// Some IO errors are expected when serving files, and mapped to a regular result here.
Some IO errors are expected when serving files, and mapped to a regular result here.
Some IO errors are expected when serving files and mapped to a regular result here .
fn map_open_err(err: IoError) -> Result<ResolveResult, IoError> {
    match err.kind() {
        IoErrorKind::NotFound => Ok(ResolveResult::NotFound),
        IoErrorKind::PermissionDenied => Ok(ResolveResult::PermissionDenied),
        _ => Err(err),
    }
}
fn map_open_err ( err : IoError ) -> Result < ResolveResult , IoError > { match err . kind ( ) { IoErrorKind :: NotFound => Ok ( ResolveResult :: NotFound ) , IoErrorKind :: PermissionDenied => Ok ( ResolveResult :: PermissionDenied ) , _ => Err ( err ) , } }
Some IO errors are expected when serving files, and mapped to a regular result here.
Some IO errors are expected when serving files and mapped to a regular result here .
err
IoError