pub enum MapError {
UnalignedStart(u64),
UnalignedSize(u64),
Overflow,
}Expand description
Setup-time error for Memory::map_region.
Variants§
UnalignedStart(u64)
start is not page-aligned.
UnalignedSize(u64)
size is not a multiple of PAGE_SIZE.
Overflow
start + size overflows usize on this platform, or exceeds
the addressable range supported by Mem.
Trait Implementations§
impl Copy for MapError
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 UnsafeUnpin for MapError
impl UnwindSafe for MapError
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