#[repr(u32)]pub enum uc_error {
Show 23 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,
OVERFLOW = 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
OVERFLOW = 22
Implementations§
Source§impl uc_error
impl uc_error
Sourcepub fn and_then<U, F>(self, op: F) -> Result<U, uc_error>
pub fn and_then<U, F>(self, op: F) -> Result<U, uc_error>
Calls op
if the result is Ok, otherwise returns the Err
value of self
.
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 this are eagerly evaluated; if you are passing the result
of a function call, it is recommended to use uc_error::and_then
instead, as it’s lazily
evaluated.
Trait Implementations§
Source§impl Error for uc_error
impl Error for uc_error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl Ord for uc_error
impl Ord for uc_error
Source§impl PartialOrd for uc_error
impl PartialOrd for uc_error
impl Copy for uc_error
impl Eq 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