fn can_be_ignored<ResT>(result: &Result<ResT, QueryError>) -> bool {
    match result {
        Ok(_) => false,
        Err(QueryError::IoError(_)) => true,
        Err(QueryError::TimeoutError) => true,
        _ => false,
    }
}
// checks if a result created in a speculative execution branch can be ignored
checks if a result created in a speculative execution branch can be ignored
checks if a result created in a speculative execution branch can be ignored
fn can_be_ignored<ResT>(result: &Result<ResT, QueryError>) -> bool {
    match result {
        Ok(_) => false,
        Err(QueryError::IoError(_)) => true,
        Err(QueryError::TimeoutError) => true,
        _ => false,
    }
}
fn can_be_ignored < ResT > ( result : & Result < ResT , QueryError > ) -> bool { match result { Ok ( _ ) => false , Err ( QueryError :: IoError ( _ ) ) => true , Err ( QueryError :: TimeoutError ) => true , _ => false , } }
checks if a result created in a speculative execution branch can be ignored
checks if a result created in a speculative execution branch can be ignored
result
&Result<ResT, QueryError>
result
&Result<ResT, QueryError>