pub enum MapToError<S: PageSize> {
FrameAllocationFailed,
ParentEntryHugePage,
PageAlreadyMapped(PhysFrame<S>),
}
Expand description
This error is returned from map_to
and similar methods.
Variants§
FrameAllocationFailed
An additional frame was needed for the mapping process, but the frame allocator
returned None
.
ParentEntryHugePage
An upper level page table entry has the HUGE_PAGE
flag set, which means that the
given page is part of an already mapped huge page.
PageAlreadyMapped(PhysFrame<S>)
The given page is already mapped to a physical frame.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for MapToError<S>
impl<S> RefUnwindSafe for MapToError<S>where
S: RefUnwindSafe,
impl<S> Send for MapToError<S>where
S: Send,
impl<S> Sync for MapToError<S>where
S: Sync,
impl<S> Unpin for MapToError<S>where
S: Unpin,
impl<S> UnwindSafe for MapToError<S>where
S: UnwindSafe,
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