HvRegisterCrInterceptControl

Struct HvRegisterCrInterceptControl 

Source
pub struct HvRegisterCrInterceptControl(/* private fields */);

Implementations§

Source§

impl HvRegisterCrInterceptControl

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 cr0_write(&self) -> bool

Bits: 0..1

Source

pub const fn with_cr0_write_checked(self, value: bool) -> Result<Self, ()>

Bits: 0..1

Source

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

Bits: 0..1

Source

pub const fn set_cr0_write(&mut self, value: bool)

Bits: 0..1

Source

pub const fn set_cr0_write_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 0..1

Source

pub const fn cr4_write(&self) -> bool

Bits: 1..2

Source

pub const fn with_cr4_write_checked(self, value: bool) -> Result<Self, ()>

Bits: 1..2

Source

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

Bits: 1..2

Source

pub const fn set_cr4_write(&mut self, value: bool)

Bits: 1..2

Source

pub const fn set_cr4_write_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 1..2

Source

pub const fn xcr0_write(&self) -> bool

Bits: 2..3

Source

pub const fn with_xcr0_write_checked(self, value: bool) -> Result<Self, ()>

Bits: 2..3

Source

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

Bits: 2..3

Source

pub const fn set_xcr0_write(&mut self, value: bool)

Bits: 2..3

Source

pub const fn set_xcr0_write_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 2..3

Source

pub const fn ia32_misc_enable_read(&self) -> bool

Bits: 3..4

Source

pub const fn with_ia32_misc_enable_read_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 3..4

Source

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

Bits: 3..4

Source

pub const fn set_ia32_misc_enable_read(&mut self, value: bool)

Bits: 3..4

Source

pub const fn set_ia32_misc_enable_read_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 3..4

Source

pub const fn ia32_misc_enable_write(&self) -> bool

Bits: 4..5

Source

pub const fn with_ia32_misc_enable_write_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 4..5

Source

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

Bits: 4..5

Source

pub const fn set_ia32_misc_enable_write(&mut self, value: bool)

Bits: 4..5

Source

pub const fn set_ia32_misc_enable_write_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 4..5

Source

pub const fn msr_lstar_read(&self) -> bool

Bits: 5..6

Source

pub const fn with_msr_lstar_read_checked(self, value: bool) -> Result<Self, ()>

Bits: 5..6

Source

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

Bits: 5..6

Source

pub const fn set_msr_lstar_read(&mut self, value: bool)

Bits: 5..6

Source

pub const fn set_msr_lstar_read_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 5..6

Source

pub const fn msr_lstar_write(&self) -> bool

Bits: 6..7

Source

pub const fn with_msr_lstar_write_checked(self, value: bool) -> Result<Self, ()>

Bits: 6..7

Source

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

Bits: 6..7

Source

pub const fn set_msr_lstar_write(&mut self, value: bool)

Bits: 6..7

Source

pub const fn set_msr_lstar_write_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 6..7

Source

pub const fn msr_star_read(&self) -> bool

Bits: 7..8

Source

pub const fn with_msr_star_read_checked(self, value: bool) -> Result<Self, ()>

Bits: 7..8

Source

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

Bits: 7..8

Source

pub const fn set_msr_star_read(&mut self, value: bool)

Bits: 7..8

Source

pub const fn set_msr_star_read_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 7..8

Source

pub const fn msr_star_write(&self) -> bool

Bits: 8..9

Source

pub const fn with_msr_star_write_checked(self, value: bool) -> Result<Self, ()>

Bits: 8..9

Source

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

Bits: 8..9

Source

pub const fn set_msr_star_write(&mut self, value: bool)

Bits: 8..9

Source

pub const fn set_msr_star_write_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 8..9

Source

pub const fn msr_cstar_read(&self) -> bool

Bits: 9..10

Source

pub const fn with_msr_cstar_read_checked(self, value: bool) -> Result<Self, ()>

Bits: 9..10

Source

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

Bits: 9..10

Source

pub const fn set_msr_cstar_read(&mut self, value: bool)

Bits: 9..10

Source

pub const fn set_msr_cstar_read_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 9..10

Source

pub const fn msr_cstar_write(&self) -> bool

Bits: 10..11

Source

pub const fn with_msr_cstar_write_checked(self, value: bool) -> Result<Self, ()>

Bits: 10..11

Source

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

Bits: 10..11

Source

pub const fn set_msr_cstar_write(&mut self, value: bool)

Bits: 10..11

Source

pub const fn set_msr_cstar_write_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 10..11

Source

pub const fn apic_base_msr_read(&self) -> bool

Bits: 11..12

Source

pub const fn with_apic_base_msr_read_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 11..12

Source

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

Bits: 11..12

Source

pub const fn set_apic_base_msr_read(&mut self, value: bool)

Bits: 11..12

Source

pub const fn set_apic_base_msr_read_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 11..12

Source

pub const fn apic_base_msr_write(&self) -> bool

Bits: 12..13

Source

pub const fn with_apic_base_msr_write_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 12..13

Source

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

Bits: 12..13

Source

pub const fn set_apic_base_msr_write(&mut self, value: bool)

Bits: 12..13

Source

pub const fn set_apic_base_msr_write_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 12..13

Source

pub const fn msr_efer_read(&self) -> bool

Bits: 13..14

Source

pub const fn with_msr_efer_read_checked(self, value: bool) -> Result<Self, ()>

Bits: 13..14

Source

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

Bits: 13..14

Source

pub const fn set_msr_efer_read(&mut self, value: bool)

Bits: 13..14

Source

pub const fn set_msr_efer_read_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 13..14

Source

pub const fn msr_efer_write(&self) -> bool

Bits: 14..15

Source

pub const fn with_msr_efer_write_checked(self, value: bool) -> Result<Self, ()>

Bits: 14..15

Source

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

Bits: 14..15

Source

pub const fn set_msr_efer_write(&mut self, value: bool)

Bits: 14..15

Source

pub const fn set_msr_efer_write_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 14..15

Source

pub const fn gdtr_write(&self) -> bool

Bits: 15..16

Source

pub const fn with_gdtr_write_checked(self, value: bool) -> Result<Self, ()>

Bits: 15..16

Source

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

Bits: 15..16

Source

pub const fn set_gdtr_write(&mut self, value: bool)

Bits: 15..16

Source

pub const fn set_gdtr_write_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 15..16

Source

pub const fn idtr_write(&self) -> bool

Bits: 16..17

Source

pub const fn with_idtr_write_checked(self, value: bool) -> Result<Self, ()>

Bits: 16..17

Source

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

Bits: 16..17

Source

pub const fn set_idtr_write(&mut self, value: bool)

Bits: 16..17

Source

pub const fn set_idtr_write_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 16..17

Source

pub const fn ldtr_write(&self) -> bool

Bits: 17..18

Source

pub const fn with_ldtr_write_checked(self, value: bool) -> Result<Self, ()>

Bits: 17..18

Source

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

Bits: 17..18

Source

pub const fn set_ldtr_write(&mut self, value: bool)

Bits: 17..18

Source

pub const fn set_ldtr_write_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 17..18

Source

pub const fn tr_write(&self) -> bool

Bits: 18..19

Source

pub const fn with_tr_write_checked(self, value: bool) -> Result<Self, ()>

Bits: 18..19

Source

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

Bits: 18..19

Source

pub const fn set_tr_write(&mut self, value: bool)

Bits: 18..19

Source

pub const fn set_tr_write_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 18..19

Source

pub const fn msr_sysenter_cs_write(&self) -> bool

Bits: 19..20

Source

pub const fn with_msr_sysenter_cs_write_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 19..20

Source

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

Bits: 19..20

Source

pub const fn set_msr_sysenter_cs_write(&mut self, value: bool)

Bits: 19..20

Source

pub const fn set_msr_sysenter_cs_write_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 19..20

Source

pub const fn msr_sysenter_eip_write(&self) -> bool

Bits: 20..21

Source

pub const fn with_msr_sysenter_eip_write_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 20..21

Source

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

Bits: 20..21

Source

pub const fn set_msr_sysenter_eip_write(&mut self, value: bool)

Bits: 20..21

Source

pub const fn set_msr_sysenter_eip_write_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 20..21

Source

pub const fn msr_sysenter_esp_write(&self) -> bool

Bits: 21..22

Source

pub const fn with_msr_sysenter_esp_write_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 21..22

Source

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

Bits: 21..22

Source

pub const fn set_msr_sysenter_esp_write(&mut self, value: bool)

Bits: 21..22

Source

pub const fn set_msr_sysenter_esp_write_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 21..22

Source

pub const fn msr_sfmask_write(&self) -> bool

Bits: 22..23

Source

pub const fn with_msr_sfmask_write_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 22..23

Source

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

Bits: 22..23

Source

pub const fn set_msr_sfmask_write(&mut self, value: bool)

Bits: 22..23

Source

pub const fn set_msr_sfmask_write_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 22..23

Source

pub const fn msr_tsc_aux_write(&self) -> bool

Bits: 23..24

Source

pub const fn with_msr_tsc_aux_write_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 23..24

Source

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

Bits: 23..24

Source

pub const fn set_msr_tsc_aux_write(&mut self, value: bool)

Bits: 23..24

Source

pub const fn set_msr_tsc_aux_write_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 23..24

Source

pub const fn msr_sgx_launch_control_write(&self) -> bool

Bits: 24..25

Source

pub const fn with_msr_sgx_launch_control_write_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 24..25

Source

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

Bits: 24..25

Source

pub const fn set_msr_sgx_launch_control_write(&mut self, value: bool)

Bits: 24..25

Source

pub const fn set_msr_sgx_launch_control_write_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 24..25

Source

pub const fn msr_xss_write(&self) -> bool

Bits: 25..26

Source

pub const fn with_msr_xss_write_checked(self, value: bool) -> Result<Self, ()>

Bits: 25..26

Source

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

Bits: 25..26

Source

pub const fn set_msr_xss_write(&mut self, value: bool)

Bits: 25..26

Source

pub const fn set_msr_xss_write_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 25..26

Source

pub const fn msr_scet_write(&self) -> bool

Bits: 26..27

Source

pub const fn with_msr_scet_write_checked(self, value: bool) -> Result<Self, ()>

Bits: 26..27

Source

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

Bits: 26..27

Source

pub const fn set_msr_scet_write(&mut self, value: bool)

Bits: 26..27

Source

pub const fn set_msr_scet_write_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 26..27

Source

pub const fn msr_pls_ssp_write(&self) -> bool

Bits: 27..28

Source

pub const fn with_msr_pls_ssp_write_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 27..28

Source

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

Bits: 27..28

Source

pub const fn set_msr_pls_ssp_write(&mut self, value: bool)

Bits: 27..28

Source

pub const fn set_msr_pls_ssp_write_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 27..28

Source

pub const fn msr_interrupt_ssp_table_addr_write(&self) -> bool

Bits: 28..29

Source

pub const fn with_msr_interrupt_ssp_table_addr_write_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 28..29

Source

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

Bits: 28..29

Source

pub const fn set_msr_interrupt_ssp_table_addr_write(&mut self, value: bool)

Bits: 28..29

Source

pub const fn set_msr_interrupt_ssp_table_addr_write_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 28..29

Trait Implementations§

Source§

impl Clone for HvRegisterCrInterceptControl

Source§

fn clone(&self) -> HvRegisterCrInterceptControl

Returns a duplicate 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 HvRegisterCrInterceptControl

Source§

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

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

impl Default for HvRegisterCrInterceptControl

Source§

fn default() -> Self

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

impl From<HvRegisterCrInterceptControl> for u64

Source§

fn from(v: HvRegisterCrInterceptControl) -> u64

Converts to this type from the input type.
Source§

impl From<u64> for HvRegisterCrInterceptControl

Source§

fn from(v: u64) -> Self

Converts to this type from the input type.
Source§

impl Copy for HvRegisterCrInterceptControl

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.