pub enum FaultKind {
ReadUnmapped,
ReadPerm,
ReadUninit,
WriteUnmapped,
WritePerm,
ExecUnmapped,
ExecViolation,
ReadWatch,
WriteWatch,
AddressOverflow,
}Expand description
Why an access could not be performed.
These are values, not errors in the “the emulator broke” sense: the VM turns them into a guest-visible exit so a harness can map a fault to a signal, a fuzzing crash, or a page-fault handler, and resume if it wants to.
Variants§
ReadUnmapped
ReadPerm
ReadUninit
WriteUnmapped
WritePerm
ExecUnmapped
ExecViolation
ReadWatch
WriteWatch
AddressOverflow
The access range wrapped past the end of the address space.
Trait Implementations§
impl Copy for FaultKind
impl Eq for FaultKind
impl StructuralPartialEq for FaultKind
Auto Trait Implementations§
impl Freeze for FaultKind
impl RefUnwindSafe for FaultKind
impl Send for FaultKind
impl Sync for FaultKind
impl Unpin for FaultKind
impl UnsafeUnpin for FaultKind
impl UnwindSafe for FaultKind
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