pub enum MapError {
AddressRange(VirtualAddress),
InvalidVirtualAddress(VirtualAddress),
RegionBackwards(MemoryRegion),
PteUpdateFault(usize),
InvalidFlags(Attributes),
BreakBeforeMakeViolation(MemoryRegion),
}Expand description
An error attempting to map some range in the page table.
Variants§
AddressRange(VirtualAddress)
The address requested to be mapped was out of the range supported by the page table configuration.
InvalidVirtualAddress(VirtualAddress)
The address requested to be mapped was not valid for the mapping in use.
RegionBackwards(MemoryRegion)
The end of the memory region is before the start.
PteUpdateFault(usize)
There was an error while updating a page table entry.
InvalidFlags(Attributes)
The requested flags are not supported for this mapping
BreakBeforeMakeViolation(MemoryRegion)
Updating the range violates break-before-make rules and the mapping is live
Trait Implementations§
Source§impl Error for MapError
impl Error for MapError
1.30.0§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl Eq for MapError
impl StructuralPartialEq for MapError
Auto Trait Implementations§
impl Freeze for MapError
impl RefUnwindSafe for MapError
impl Send for MapError
impl Sync for MapError
impl Unpin for MapError
impl UnwindSafe for MapError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)