Closed acatangiu closed 4 years ago
The FamStructWrapper safe wrapper implements Clone if the object it wraps also implements Clone.
FamStructWrapper
Clone
To enable Clone on the safe wrappers CpuId, Msrs and MsrList we need to implement Clone for kvm_cpuid2, kvm_msrs and respectively kvm_msr_list.
CpuId
Msrs
MsrList
kvm_cpuid2
kvm_msrs
kvm_msr_list
Should we close this one now?
Fixed in https://github.com/rust-vmm/vmm-sys-util/pull/55
The
FamStructWrapper
safe wrapper implementsClone
if the object it wraps also implementsClone
.To enable
Clone
on the safe wrappersCpuId
,Msrs
andMsrList
we need to implementClone
forkvm_cpuid2
,kvm_msrs
and respectivelykvm_msr_list
.