pub enum MemInitError {
NoHugePageFound,
ImageMetadata(Error),
ImageRewind(Error),
ImageWriteIncomplete,
ImageRead(Error),
OffsetCheckOverflow,
ImagePlacementOverflow,
}Expand description
Error that may occur when allocating and configuring enclave memory.
Variants§
NoHugePageFound
A valid combination of hugepages could not be found for the requested size.
ImageMetadata(Error)
Unable to retrieve image metadata.
ImageRewind(Error)
Unable to rewind image to beginning of image file.
ImageWriteIncomplete
Unable to write total image file to memory regions.
ImageRead(Error)
Unable to read bytes from image file.
OffsetCheckOverflow
Overflow when checking if memory region write was greater than image offset.
ImagePlacementOverflow
Overflow when calculating end of image region in guest memory.
Trait Implementations§
Source§impl Debug for MemInitError
impl Debug for MemInitError
Auto Trait Implementations§
impl Freeze for MemInitError
impl !RefUnwindSafe for MemInitError
impl Send for MemInitError
impl Sync for MemInitError
impl Unpin for MemInitError
impl !UnwindSafe for MemInitError
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