pub enum PagingError {
NoMemory,
NotAligned,
NotMapped,
AlreadyMapped,
MappedToHugePage,
}Expand description
The error type for page table operation failures.
Variants§
NoMemory
Cannot allocate memory.
NotAligned
The address is not aligned to the page size.
NotMapped
The mapping is not present.
AlreadyMapped
The mapping is already present.
MappedToHugePage
The page table entry represents a huge page, but the target physical frame is 4K in size.
Trait Implementations§
Source§impl Clone for PagingError
impl Clone for PagingError
Source§fn clone(&self) -> PagingError
fn clone(&self) -> PagingError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PagingError
Source§impl Debug for PagingError
impl Debug for PagingError
Source§impl From<PagingError> for AxErrorKind
Available on crate feature ax-errno only.
impl From<PagingError> for AxErrorKind
Available on crate feature
ax-errno only.Source§fn from(value: PagingError) -> Self
fn from(value: PagingError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PagingError
impl PartialEq for PagingError
Source§fn eq(&self, other: &PagingError) -> bool
fn eq(&self, other: &PagingError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PagingError
Auto Trait Implementations§
impl Freeze for PagingError
impl RefUnwindSafe for PagingError
impl Send for PagingError
impl Sync for PagingError
impl Unpin for PagingError
impl UnsafeUnpin for PagingError
impl UnwindSafe for PagingError
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