Enum MapToError
pub enum MapToError<S>where
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§
§impl<S> Debug for MapToError<S>
impl<S> Debug for MapToError<S>
§impl From<PageTableCreateError> for MapToError<Size4KiB>
impl From<PageTableCreateError> for MapToError<Size4KiB>
§fn from(err: PageTableCreateError) -> MapToError<Size4KiB>
fn from(err: PageTableCreateError) -> MapToError<Size4KiB>
Converts to this type from the input type.
§impl From<PageTableCreateError> for MapToError<Size2MiB>
impl From<PageTableCreateError> for MapToError<Size2MiB>
§fn from(err: PageTableCreateError) -> MapToError<Size2MiB>
fn from(err: PageTableCreateError) -> MapToError<Size2MiB>
Converts to this type from the input type.
§impl From<PageTableCreateError> for MapToError<Size1GiB>
impl From<PageTableCreateError> for MapToError<Size1GiB>
§fn from(err: PageTableCreateError) -> MapToError<Size1GiB>
fn from(err: PageTableCreateError) -> MapToError<Size1GiB>
Converts to this type from the input type.
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> UnsafeUnpin for MapToError<S>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more