Struct x86defs::PageFaultErrorCode
source · pub struct PageFaultErrorCode(/* private fields */);
Implementations§
source§impl PageFaultErrorCode
impl PageFaultErrorCode
sourcepub const fn with_present(self, value: bool) -> Self
pub const fn with_present(self, value: bool) -> Self
Bits: 0..1
sourcepub fn set_present(&mut self, value: bool)
pub fn set_present(&mut self, value: bool)
Bits: 0..1
sourcepub const fn with_write(self, value: bool) -> Self
pub const fn with_write(self, value: bool) -> Self
Bits: 1..2
sourcepub const fn with_reserved(self, value: bool) -> Self
pub const fn with_reserved(self, value: bool) -> Self
Bits: 3..4
sourcepub fn set_reserved(&mut self, value: bool)
pub fn set_reserved(&mut self, value: bool)
Bits: 3..4
sourcepub const fn with_fetch(self, value: bool) -> Self
pub const fn with_fetch(self, value: bool) -> Self
Bits: 4..5
Trait Implementations§
source§impl Clone for PageFaultErrorCode
impl Clone for PageFaultErrorCode
source§fn clone(&self) -> PageFaultErrorCode
fn clone(&self) -> PageFaultErrorCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PageFaultErrorCode
impl Debug for PageFaultErrorCode
source§impl Default for PageFaultErrorCode
impl Default for PageFaultErrorCode
source§impl From<PageFaultErrorCode> for u32
impl From<PageFaultErrorCode> for u32
source§fn from(v: PageFaultErrorCode) -> u32
fn from(v: PageFaultErrorCode) -> u32
Converts to this type from the input type.
source§impl From<u32> for PageFaultErrorCode
impl From<u32> for PageFaultErrorCode
impl Copy for PageFaultErrorCode
Auto Trait Implementations§
impl Freeze for PageFaultErrorCode
impl RefUnwindSafe for PageFaultErrorCode
impl Send for PageFaultErrorCode
impl Sync for PageFaultErrorCode
impl Unpin for PageFaultErrorCode
impl UnwindSafe for PageFaultErrorCode
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
)