Struct hvdef::HvPartitionPrivilege

source ·
pub struct HvPartitionPrivilege(/* private fields */);

Implementations§

source§

impl HvPartitionPrivilege

source

pub const fn new() -> Self

Creates a new default initialized bitfield.

source

pub const fn from_bits(bits: u64) -> Self

Convert from bits.

source

pub const fn into_bits(self) -> u64

Convert into bits.

source

pub const fn access_vp_runtime_msr(&self) -> bool

Bits: 0..1

source

pub const fn with_access_vp_runtime_msr(self, value: bool) -> Self

Bits: 0..1

source

pub fn set_access_vp_runtime_msr(&mut self, value: bool)

Bits: 0..1

source

pub const fn access_partition_reference_counter(&self) -> bool

Bits: 1..2

source

pub const fn with_access_partition_reference_counter(self, value: bool) -> Self

Bits: 1..2

source

pub fn set_access_partition_reference_counter(&mut self, value: bool)

Bits: 1..2

source

pub const fn access_synic_msrs(&self) -> bool

Bits: 2..3

source

pub const fn with_access_synic_msrs(self, value: bool) -> Self

Bits: 2..3

source

pub fn set_access_synic_msrs(&mut self, value: bool)

Bits: 2..3

source

pub const fn access_synthetic_timer_msrs(&self) -> bool

Bits: 3..4

source

pub const fn with_access_synthetic_timer_msrs(self, value: bool) -> Self

Bits: 3..4

source

pub fn set_access_synthetic_timer_msrs(&mut self, value: bool)

Bits: 3..4

source

pub const fn access_apic_msrs(&self) -> bool

Bits: 4..5

source

pub const fn with_access_apic_msrs(self, value: bool) -> Self

Bits: 4..5

source

pub fn set_access_apic_msrs(&mut self, value: bool)

Bits: 4..5

source

pub const fn access_hypercall_msrs(&self) -> bool

Bits: 5..6

source

pub const fn with_access_hypercall_msrs(self, value: bool) -> Self

Bits: 5..6

source

pub fn set_access_hypercall_msrs(&mut self, value: bool)

Bits: 5..6

source

pub const fn access_vp_index(&self) -> bool

Bits: 6..7

source

pub const fn with_access_vp_index(self, value: bool) -> Self

Bits: 6..7

source

pub fn set_access_vp_index(&mut self, value: bool)

Bits: 6..7

source

pub const fn access_reset_msr(&self) -> bool

Bits: 7..8

source

pub const fn with_access_reset_msr(self, value: bool) -> Self

Bits: 7..8

source

pub fn set_access_reset_msr(&mut self, value: bool)

Bits: 7..8

source

pub const fn access_stats_msr(&self) -> bool

Bits: 8..9

source

pub const fn with_access_stats_msr(self, value: bool) -> Self

Bits: 8..9

source

pub fn set_access_stats_msr(&mut self, value: bool)

Bits: 8..9

source

pub const fn access_partition_reference_tsc(&self) -> bool

Bits: 9..10

source

pub const fn with_access_partition_reference_tsc(self, value: bool) -> Self

Bits: 9..10

source

pub fn set_access_partition_reference_tsc(&mut self, value: bool)

Bits: 9..10

source

pub const fn access_guest_idle_msr(&self) -> bool

Bits: 10..11

source

pub const fn with_access_guest_idle_msr(self, value: bool) -> Self

Bits: 10..11

source

pub fn set_access_guest_idle_msr(&mut self, value: bool)

Bits: 10..11

source

pub const fn access_frequency_msrs(&self) -> bool

Bits: 11..12

source

pub const fn with_access_frequency_msrs(self, value: bool) -> Self

Bits: 11..12

source

pub fn set_access_frequency_msrs(&mut self, value: bool)

Bits: 11..12

source

pub const fn access_debug_msrs(&self) -> bool

Bits: 12..13

source

pub const fn with_access_debug_msrs(self, value: bool) -> Self

Bits: 12..13

source

pub fn set_access_debug_msrs(&mut self, value: bool)

Bits: 12..13

source

pub const fn access_reenlightenment_ctrls(&self) -> bool

Bits: 13..14

source

pub const fn with_access_reenlightenment_ctrls(self, value: bool) -> Self

Bits: 13..14

source

pub fn set_access_reenlightenment_ctrls(&mut self, value: bool)

Bits: 13..14

source

pub const fn access_root_scheduler_msr(&self) -> bool

Bits: 14..15

source

pub const fn with_access_root_scheduler_msr(self, value: bool) -> Self

Bits: 14..15

source

pub fn set_access_root_scheduler_msr(&mut self, value: bool)

Bits: 14..15

source

pub const fn access_tsc_invariant_controls(&self) -> bool

Bits: 15..16

source

pub const fn with_access_tsc_invariant_controls(self, value: bool) -> Self

Bits: 15..16

source

pub fn set_access_tsc_invariant_controls(&mut self, value: bool)

Bits: 15..16

source

pub const fn create_partitions(&self) -> bool

Bits: 32..33

source

pub const fn with_create_partitions(self, value: bool) -> Self

Bits: 32..33

source

pub fn set_create_partitions(&mut self, value: bool)

Bits: 32..33

source

pub const fn access_partition_id(&self) -> bool

Bits: 33..34

source

pub const fn with_access_partition_id(self, value: bool) -> Self

Bits: 33..34

source

pub fn set_access_partition_id(&mut self, value: bool)

Bits: 33..34

source

pub const fn access_memory_pool(&self) -> bool

Bits: 34..35

source

pub const fn with_access_memory_pool(self, value: bool) -> Self

Bits: 34..35

source

pub fn set_access_memory_pool(&mut self, value: bool)

Bits: 34..35

source

pub const fn adjust_message_buffers(&self) -> bool

Bits: 35..36

source

pub const fn with_adjust_message_buffers(self, value: bool) -> Self

Bits: 35..36

source

pub fn set_adjust_message_buffers(&mut self, value: bool)

Bits: 35..36

source

pub const fn post_messages(&self) -> bool

Bits: 36..37

source

pub const fn with_post_messages(self, value: bool) -> Self

Bits: 36..37

source

pub fn set_post_messages(&mut self, value: bool)

Bits: 36..37

source

pub const fn signal_events(&self) -> bool

Bits: 37..38

source

pub const fn with_signal_events(self, value: bool) -> Self

Bits: 37..38

source

pub fn set_signal_events(&mut self, value: bool)

Bits: 37..38

source

pub const fn create_port(&self) -> bool

Bits: 38..39

source

pub const fn with_create_port(self, value: bool) -> Self

Bits: 38..39

source

pub fn set_create_port(&mut self, value: bool)

Bits: 38..39

source

pub const fn connect_port(&self) -> bool

Bits: 39..40

source

pub const fn with_connect_port(self, value: bool) -> Self

Bits: 39..40

source

pub fn set_connect_port(&mut self, value: bool)

Bits: 39..40

source

pub const fn access_stats(&self) -> bool

Bits: 40..41

source

pub const fn with_access_stats(self, value: bool) -> Self

Bits: 40..41

source

pub fn set_access_stats(&mut self, value: bool)

Bits: 40..41

source

pub const fn debugging(&self) -> bool

Bits: 43..44

source

pub const fn with_debugging(self, value: bool) -> Self

Bits: 43..44

source

pub fn set_debugging(&mut self, value: bool)

Bits: 43..44

source

pub const fn cpu_management(&self) -> bool

Bits: 44..45

source

pub const fn with_cpu_management(self, value: bool) -> Self

Bits: 44..45

source

pub fn set_cpu_management(&mut self, value: bool)

Bits: 44..45

source

pub const fn configure_profiler(&self) -> bool

Bits: 45..46

source

pub const fn with_configure_profiler(self, value: bool) -> Self

Bits: 45..46

source

pub fn set_configure_profiler(&mut self, value: bool)

Bits: 45..46

source

pub const fn access_vp_exit_tracing(&self) -> bool

Bits: 46..47

source

pub const fn with_access_vp_exit_tracing(self, value: bool) -> Self

Bits: 46..47

source

pub fn set_access_vp_exit_tracing(&mut self, value: bool)

Bits: 46..47

source

pub const fn enable_extended_gva_ranges_flush_va_list(&self) -> bool

Bits: 47..48

source

pub const fn with_enable_extended_gva_ranges_flush_va_list( self, value: bool, ) -> Self

Bits: 47..48

source

pub fn set_enable_extended_gva_ranges_flush_va_list(&mut self, value: bool)

Bits: 47..48

source

pub const fn access_vsm(&self) -> bool

Bits: 48..49

source

pub const fn with_access_vsm(self, value: bool) -> Self

Bits: 48..49

source

pub fn set_access_vsm(&mut self, value: bool)

Bits: 48..49

source

pub const fn access_vp_registers(&self) -> bool

Bits: 49..50

source

pub const fn with_access_vp_registers(self, value: bool) -> Self

Bits: 49..50

source

pub fn set_access_vp_registers(&mut self, value: bool)

Bits: 49..50

source

pub const fn fast_hypercall_output(&self) -> bool

Bits: 51..52

source

pub const fn with_fast_hypercall_output(self, value: bool) -> Self

Bits: 51..52

source

pub fn set_fast_hypercall_output(&mut self, value: bool)

Bits: 51..52

source

pub const fn enable_extended_hypercalls(&self) -> bool

Bits: 52..53

source

pub const fn with_enable_extended_hypercalls(self, value: bool) -> Self

Bits: 52..53

source

pub fn set_enable_extended_hypercalls(&mut self, value: bool)

Bits: 52..53

source

pub const fn start_virtual_processor(&self) -> bool

Bits: 53..54

source

pub const fn with_start_virtual_processor(self, value: bool) -> Self

Bits: 53..54

source

pub fn set_start_virtual_processor(&mut self, value: bool)

Bits: 53..54

source

pub const fn isolation(&self) -> bool

Bits: 54..55

source

pub const fn with_isolation(self, value: bool) -> Self

Bits: 54..55

source

pub fn set_isolation(&mut self, value: bool)

Bits: 54..55

Trait Implementations§

source§

impl Clone for HvPartitionPrivilege

source§

fn clone(&self) -> HvPartitionPrivilege

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for HvPartitionPrivilege

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for HvPartitionPrivilege

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<HvPartitionPrivilege> for u64

source§

fn from(v: HvPartitionPrivilege) -> u64

Converts to this type from the input type.
source§

impl From<u64> for HvPartitionPrivilege

source§

fn from(v: u64) -> Self

Converts to this type from the input type.
source§

impl Copy for HvPartitionPrivilege

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.