pub(crate) fn to_crosvm_rc<T>(r: Result<T, c_int>) -> c_int