#[repr(u8)]pub enum Error {
Show 15 variants
Memory = 1,
Arch = 2,
Handle = 3,
Csh = 4,
Mode = 5,
Option = 6,
Detail = 7,
MemSetup = 8,
Version = 9,
Diet = 10,
Skipdata = 11,
X86Att = 12,
X86Intel = 13,
X86Masm = 14,
Bindings = 15,
}Variants§
Memory = 1
Out of memory error.
Arch = 2
Unsupported architecture.
Handle = 3
Invalid handle.
Csh = 4
Invalid Capstone handle argument.
NOTE: This should not come up using the safe bindings. If it does please file an issue.
Mode = 5
Invalid/unsupported mode.
Option = 6
Invalid/unsupported option.
Detail = 7
Information is unavailable because detail option is OFF.
MemSetup = 8
Dynamic memory management uninitialized.
Version = 9
Unsupported version (bindings).
Diet = 10
Accessed irrelevant data in “diet” engine.
Skipdata = 11
Accessed irrelevant data for “data” instruction in SKIPDATA mode.
X86Att = 12
X86 AT&T syntax is unsupported (opted out at compile time).
X86Intel = 13
X86 Intel syntex is unsupported (opted out at compile time).
X86Masm = 14
X86 MASM syntex is unsupported (opted out at compile time).
Bindings = 15
An error occurred in the bindings. Truly terrible.
Trait Implementations§
Source§impl Error for Error
Available on crate feature std only.
impl Error for Error
Available on crate feature
std only.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()
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for 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