Enum unicorn_engine::unicorn_const::uc_error
source · #[repr(C)]pub enum uc_error {
Show 22 variants
OK = 0,
NOMEM = 1,
ARCH = 2,
HANDLE = 3,
MODE = 4,
VERSION = 5,
READ_UNMAPPED = 6,
WRITE_UNMAPPED = 7,
FETCH_UNMAPPED = 8,
HOOK = 9,
INSN_INVALID = 10,
MAP = 11,
WRITE_PROT = 12,
READ_PROT = 13,
FETCH_PROT = 14,
ARG = 15,
READ_UNALIGNED = 16,
WRITE_UNALIGNED = 17,
FETCH_UNALIGNED = 18,
HOOK_EXIST = 19,
RESOURCE = 20,
EXCEPTION = 21,
}Variants§
OK = 0
NOMEM = 1
ARCH = 2
HANDLE = 3
MODE = 4
VERSION = 5
READ_UNMAPPED = 6
WRITE_UNMAPPED = 7
FETCH_UNMAPPED = 8
HOOK = 9
INSN_INVALID = 10
MAP = 11
WRITE_PROT = 12
READ_PROT = 13
FETCH_PROT = 14
ARG = 15
READ_UNALIGNED = 16
WRITE_UNALIGNED = 17
FETCH_UNALIGNED = 18
HOOK_EXIST = 19
RESOURCE = 20
EXCEPTION = 21
Implementations§
source§impl uc_error
impl uc_error
sourcepub fn and_then<U, F: FnOnce() -> Result<U, uc_error>>(
self,
op: F,
) -> Result<U, uc_error>
pub fn and_then<U, F: FnOnce() -> Result<U, uc_error>>( self, op: F, ) -> Result<U, uc_error>
Calls op if the result is Ok, otherwise returns the Err value of self. This function can be used for control flow based on Result values.
sourcepub fn and<U>(self, res: Result<U, uc_error>) -> Result<U, uc_error>
pub fn and<U>(self, res: Result<U, uc_error>) -> Result<U, uc_error>
Returns res if the result is Ok, otherwise returns the Err value of self. Arguments passed to and are eagerly evaluated; if you are passing the result of a function call, it is recommended to use and_then, which is lazily evaluated.
Trait Implementations§
impl Copy for uc_error
impl StructuralPartialEq for uc_error
Auto Trait Implementations§
impl Freeze for uc_error
impl RefUnwindSafe for uc_error
impl Send for uc_error
impl Sync for uc_error
impl Unpin for uc_error
impl UnwindSafe for uc_error
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)