Enum TranslateError
pub enum TranslateError {
PageNotMapped,
ParentEntryHugePage,
InvalidFrameAddress(PhysAddr),
}Expand description
An error indicating that an translate call failed.
Variants§
PageNotMapped
The given page is not mapped to a physical frame.
ParentEntryHugePage
An upper level page table entry has the HUGE_PAGE flag set, which means that the
given page is part of a huge page and can’t be freed individually.
InvalidFrameAddress(PhysAddr)
The page table entry for the given page points to an invalid physical address.
Trait Implementations§
§impl Debug for TranslateError
impl Debug for TranslateError
§impl From<PageTableWalkError> for TranslateError
impl From<PageTableWalkError> for TranslateError
§fn from(err: PageTableWalkError) -> TranslateError
fn from(err: PageTableWalkError) -> TranslateError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TranslateError
impl RefUnwindSafe for TranslateError
impl Send for TranslateError
impl Sync for TranslateError
impl Unpin for TranslateError
impl UnsafeUnpin for TranslateError
impl UnwindSafe for TranslateError
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