pub struct ApicBase(/* private fields */);
Expand description
The APIC base MSR.
Implementations§
source§impl ApicBase
impl ApicBase
sourcepub const fn with_x2apic(self, value: bool) -> Self
pub const fn with_x2apic(self, value: bool) -> Self
Bits: 10..11
sourcepub fn set_x2apic(&mut self, value: bool)
pub fn set_x2apic(&mut self, value: bool)
Bits: 10..11
sourcepub const fn with_enable(self, value: bool) -> Self
pub const fn with_enable(self, value: bool) -> Self
Bits: 11..12
sourcepub fn set_enable(&mut self, value: bool)
pub fn set_enable(&mut self, value: bool)
Bits: 11..12
sourcepub const fn base_page(&self) -> u32
pub const fn base_page(&self) -> u32
The page number of the APIC (usually APIC_BASE_PAGE).
Bits: 12..36
sourcepub const fn with_base_page(self, value: u32) -> Self
pub const fn with_base_page(self, value: u32) -> Self
The page number of the APIC (usually APIC_BASE_PAGE).
Bits: 12..36
sourcepub fn set_base_page(&mut self, value: u32)
pub fn set_base_page(&mut self, value: u32)
The page number of the APIC (usually APIC_BASE_PAGE).
Bits: 12..36
Trait Implementations§
impl Copy for ApicBase
Auto Trait Implementations§
impl Freeze for ApicBase
impl RefUnwindSafe for ApicBase
impl Send for ApicBase
impl Sync for ApicBase
impl Unpin for ApicBase
impl UnwindSafe for ApicBase
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)