pub struct CpuProperties {
pub architecture: Architecture,
pub vendor: Option<Vendor>,
pub features: Vec<CpuFeature>,
}Fields§
§architecture: ArchitectureCPU architecture.
vendor: Option<Vendor>CPU vendor.
features: Vec<CpuFeature>CPU features required by the virtual machine. Examples: ‘sev’, ‘sev_es’, ‘sev_snp’.
Trait Implementations§
Source§impl Clone for CpuProperties
impl Clone for CpuProperties
Source§fn clone(&self) -> CpuProperties
fn clone(&self) -> CpuProperties
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CpuProperties
impl Debug for CpuProperties
Source§impl<'de> Deserialize<'de> for CpuProperties
impl<'de> Deserialize<'de> for CpuProperties
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CpuProperties
impl PartialEq for CpuProperties
Source§impl Serialize for CpuProperties
impl Serialize for CpuProperties
impl StructuralPartialEq for CpuProperties
Auto Trait Implementations§
impl Freeze for CpuProperties
impl RefUnwindSafe for CpuProperties
impl Send for CpuProperties
impl Sync for CpuProperties
impl Unpin for CpuProperties
impl UnsafeUnpin for CpuProperties
impl UnwindSafe for CpuProperties
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more