pub struct PageFaultErrorCode(/* private fields */);
Implementations§
Source§impl PageFaultErrorCode
impl PageFaultErrorCode
Sourcepub const fn with_present_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_present_checked(self, value: bool) -> Result<Self, ()>
Bits: 0..1
Sourcepub const fn with_present(self, value: bool) -> Self
pub const fn with_present(self, value: bool) -> Self
Bits: 0..1
Sourcepub const fn set_present(&mut self, value: bool)
pub const fn set_present(&mut self, value: bool)
Bits: 0..1
Sourcepub const fn with_write_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_write_checked(self, value: bool) -> Result<Self, ()>
Bits: 1..2
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_user_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_user_checked(self, value: bool) -> Result<Self, ()>
Bits: 2..3
Sourcepub const fn with_reserved_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_reserved_checked(self, value: bool) -> Result<Self, ()>
Bits: 3..4
Sourcepub const fn with_reserved(self, value: bool) -> Self
pub const fn with_reserved(self, value: bool) -> Self
Bits: 3..4
Sourcepub const fn set_reserved(&mut self, value: bool)
pub const fn set_reserved(&mut self, value: bool)
Bits: 3..4
Sourcepub const fn with_fetch_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_fetch_checked(self, value: bool) -> Result<Self, ()>
Bits: 4..5
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