pub enum MappingError {
InvalidParam,
AlreadyExists,
BadState,
}Expand description
Error type for memory mapping operations.
Variants§
InvalidParam
Invalid parameter (e.g., addr, size, flags, etc.)
AlreadyExists
The given range overlaps with an existing mapping.
BadState
The backend page table is in a bad state.
Trait Implementations§
Source§impl Debug for MappingError
impl Debug for MappingError
Source§impl From<MappingError> for AxError
Available on crate feature axerrno only.
impl From<MappingError> for AxError
Available on crate feature
axerrno only.Source§fn from(err: MappingError) -> Self
fn from(err: MappingError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MappingError
impl PartialEq for MappingError
impl Eq for MappingError
impl StructuralPartialEq for MappingError
Auto Trait Implementations§
impl Freeze for MappingError
impl RefUnwindSafe for MappingError
impl Send for MappingError
impl Sync for MappingError
impl Unpin for MappingError
impl UnwindSafe for MappingError
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