Trait virt::state::StateElement

source ·
pub trait StateElement<C, V>: Sized + Inspect {
    // Required methods
    fn is_present(caps: &C) -> bool;
    fn at_reset(caps: &C, vp: &V) -> Self;

    // Provided method
    fn can_compare(_caps: &C) -> bool { ... }
}

Required Methods§

source

fn is_present(caps: &C) -> bool

Returns whether this state is present for the partition, based on the partition capabilities.

source

fn at_reset(caps: &C, vp: &V) -> Self

Returns the value at VM reset.

Provided Methods§

source

fn can_compare(_caps: &C) -> bool

Returns whether it’s possible to read this value and compare it to an expected value.

This will be false when the value may change as soon as its set (e.g., a timestamp counter for hypervisors that cannot freeze time).

Object Safety§

This trait is not object safe.

Implementors§

source§

impl StateElement<Aarch64PartitionCapabilities, Aarch64VpInfo> for virt::aarch64::vp::Registers

source§

impl StateElement<Aarch64PartitionCapabilities, Aarch64VpInfo> for SystemRegisters

source§

impl StateElement<X86PartitionCapabilities, X86VpInfo> for HypercallMsrs

source§

impl StateElement<X86PartitionCapabilities, X86VpInfo> for ReferenceTime

source§

impl StateElement<X86PartitionCapabilities, X86VpInfo> for ReferenceTscPage

source§

impl StateElement<X86PartitionCapabilities, X86VpInfo> for Activity

source§

impl StateElement<X86PartitionCapabilities, X86VpInfo> for Apic

source§

impl StateElement<X86PartitionCapabilities, X86VpInfo> for CacheControl

source§

impl StateElement<X86PartitionCapabilities, X86VpInfo> for Cet

source§

impl StateElement<X86PartitionCapabilities, X86VpInfo> for CetSs

source§

impl StateElement<X86PartitionCapabilities, X86VpInfo> for DebugRegisters

source§

impl StateElement<X86PartitionCapabilities, X86VpInfo> for virt::x86::vp::Registers

source§

impl StateElement<X86PartitionCapabilities, X86VpInfo> for SynicEventFlagsPage

source§

impl StateElement<X86PartitionCapabilities, X86VpInfo> for SynicMessagePage

source§

impl StateElement<X86PartitionCapabilities, X86VpInfo> for SynicMessageQueues

source§

impl StateElement<X86PartitionCapabilities, X86VpInfo> for SynicTimers

source§

impl StateElement<X86PartitionCapabilities, X86VpInfo> for SyntheticMsrs

source§

impl StateElement<X86PartitionCapabilities, X86VpInfo> for Tsc

source§

impl StateElement<X86PartitionCapabilities, X86VpInfo> for TscAux

source§

impl StateElement<X86PartitionCapabilities, X86VpInfo> for VirtualMsrs

source§

impl StateElement<X86PartitionCapabilities, X86VpInfo> for Xcr0

source§

impl StateElement<X86PartitionCapabilities, X86VpInfo> for Xsave

source§

impl StateElement<X86PartitionCapabilities, X86VpInfo> for Xss