pub enum AllocateError {
    NotAligned,
    OutOfMemory,
    ZeroSize,
    PageAlreadyMapped,
    ParentEntryHugePage,
}
Expand description

Error returned by the EnarxAllocator

Variants

NotAligned

Memory or Size not page aligned

OutOfMemory

Out of Memory

ZeroSize

Requested memory size of zero

PageAlreadyMapped

Error mapping the page

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.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.