PagingError

Enum PagingError 

Source
pub enum PagingError {
    NotMapped,
    AlreadyMapped,
    InvalidAddress,
    HugePageConflict,
    InvalidFlags,
    FrameAllocFailed,
    UnsupportedMapType,
    ShrinkBelowStart,
    HugePageSplitNotImplemented,
    OutOfMemory,
}
Expand description

分页操作中可能发生的错误

Variants§

§

NotMapped

虚拟地址未被映射

§

AlreadyMapped

虚拟地址已被映射

§

InvalidAddress

提供了无效的地址

§

HugePageConflict

由于与现有的巨页(Huge Page)映射冲突,操作失败。

§

InvalidFlags

提供了无效的标志(Flags)

§

FrameAllocFailed

帧(Frame)分配失败

§

UnsupportedMapType

此操作不支持此映射类型

§

ShrinkBelowStart

区域不能收缩到其起始地址以下

§

HugePageSplitNotImplemented

巨页拆分功能尚未实现

§

OutOfMemory

内存耗尽

Trait Implementations§

Source§

impl Debug for PagingError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for PagingError

§

impl RefUnwindSafe for PagingError

§

impl Send for PagingError

§

impl Sync for PagingError

§

impl Unpin for PagingError

§

impl UnwindSafe for PagingError

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.