Struct applevisor::VcpuConfig
source · pub struct VcpuConfig(_);
Expand description
Represents a vCPU configuration.
Implementations
sourceimpl VcpuConfig
impl VcpuConfig
sourcepub fn get_feature_reg(&self, reg: FeatureReg) -> Result<u64>
pub fn get_feature_reg(&self, reg: FeatureReg) -> Result<u64>
Retrieves the value of a feature register.
sourcepub fn get_ccsidr_el1_sys_reg_values(&self, cache_type: CacheType) -> Result<u64>
pub fn get_ccsidr_el1_sys_reg_values(&self, cache_type: CacheType) -> Result<u64>
Returns the Cache Size ID Register (CCSIDR_EL1) values for the vCPU configuration and cache type you specify.
Trait Implementations
sourceimpl Clone for VcpuConfig
impl Clone for VcpuConfig
sourcefn clone(&self) -> VcpuConfig
fn clone(&self) -> VcpuConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for VcpuConfig
impl Debug for VcpuConfig
sourceimpl Default for VcpuConfig
impl Default for VcpuConfig
sourceimpl Hash for VcpuConfig
impl Hash for VcpuConfig
sourceimpl Ord for VcpuConfig
impl Ord for VcpuConfig
sourcefn cmp(&self, other: &VcpuConfig) -> Ordering
fn cmp(&self, other: &VcpuConfig) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<VcpuConfig> for VcpuConfig
impl PartialEq<VcpuConfig> for VcpuConfig
sourcefn eq(&self, other: &VcpuConfig) -> bool
fn eq(&self, other: &VcpuConfig) -> bool
sourceimpl PartialOrd<VcpuConfig> for VcpuConfig
impl PartialOrd<VcpuConfig> for VcpuConfig
sourcefn partial_cmp(&self, other: &VcpuConfig) -> Option<Ordering>
fn partial_cmp(&self, other: &VcpuConfig) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for VcpuConfig
impl StructuralEq for VcpuConfig
impl StructuralPartialEq for VcpuConfig
Auto Trait Implementations
impl RefUnwindSafe for VcpuConfig
impl !Send for VcpuConfig
impl !Sync for VcpuConfig
impl Unpin for VcpuConfig
impl UnwindSafe for VcpuConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more