pub enum Win32Error {
UnknownImport {
dll: String,
name: String,
},
InvalidArgument {
stub: &'static str,
reason: String,
},
InvalidHeapBlock {
stub: &'static str,
addr: u32,
},
BudgetExhausted {
executed: u64,
},
}Expand description
Errors a stub can raise. Wrapped in crate::Error::Win32.
Variants§
UnknownImport
No stub registered for the requested (dll, name) pair.
PE-load-time error; surfaces from
crate::pe::Loader::resolve_imports.
InvalidArgument
Stub-side argument validation failed.
InvalidHeapBlock
Heap call referenced an unknown allocation.
BudgetExhausted
The per-run instruction budget set on
HostState::instruction_budget was exhausted before
the guest reached RET_SENTINEL. Analysis front-ends
use this to cap adversarial samples that loop. The
state captured up to the budget point — coverage
map, stub trace, register snapshot — is still valid.
Trait Implementations§
Source§impl Clone for Win32Error
impl Clone for Win32Error
Source§fn clone(&self) -> Win32Error
fn clone(&self) -> Win32Error
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Win32Error
impl Debug for Win32Error
Source§impl Display for Win32Error
impl Display for Win32Error
Source§impl From<Win32Error> for Error
impl From<Win32Error> for Error
Source§fn from(e: Win32Error) -> Self
fn from(e: Win32Error) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Win32Error
impl PartialEq for Win32Error
Source§fn eq(&self, other: &Win32Error) -> bool
fn eq(&self, other: &Win32Error) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for Win32Error
impl StructuralPartialEq for Win32Error
Auto Trait Implementations§
impl Freeze for Win32Error
impl RefUnwindSafe for Win32Error
impl Send for Win32Error
impl Sync for Win32Error
impl Unpin for Win32Error
impl UnsafeUnpin for Win32Error
impl UnwindSafe for Win32Error
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