pub fn process_result<T, R: Display>(result: Result<T, R>) -> Option<T>