pub enum VmError {
BadAddress,
AccessDenied,
TooLong,
}Expand description
Errors that can occur during virtual memory operations.
Variants§
BadAddress
The address is invalid, e.g., not aligned to the required boundary, out of bounds (including null).
AccessDenied
The operation is not allowed, e.g., trying to write to read-only memory.
TooLong
The C-style string or array is too long.
This error is returned by vm_load_until_nul when the null terminator
is not found within a predefined search limit.
Trait Implementations§
impl Copy for VmError
impl StructuralPartialEq for VmError
Auto Trait Implementations§
impl Freeze for VmError
impl RefUnwindSafe for VmError
impl Send for VmError
impl Sync for VmError
impl Unpin for VmError
impl UnwindSafe for VmError
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