Enum capstone::Error[][src]

pub enum Error {
Show variants OutOfMemory, UnsupportedArch, InvalidHandle, InvalidCsh, InvalidMode, InvalidOption, DetailOff, UninitializedMemSetup, UnsupportedVersion, IrrelevantDataInDiet, IrrelevantDataInSkipData, UnsupportedX86Att, UnsupportedX86Intel, UnsupportedX86Masm, UnknownCapstoneError, InvalidM68kBitfieldRegister, CustomError(&'static str),
}
Expand description

An error enum for this library

Variants

OutOfMemory

Out-Of-Memory error: cs_open(), cs_disasm(), cs_disasm_iter()

UnsupportedArch

Unsupported Architecture: cs_open()

InvalidHandle

Invalid Handle: cs_op_count(), cs_op_index()

InvalidCsh

Invalid InvalidCsh argument: cs_close(), cs_errno(), cs_option()

InvalidMode

Invalid/unsupported mode: cs_open()

InvalidOption

Invalid/unsupported option: cs_option()

DetailOff

Information is unavailable because detail option is OFF

UninitializedMemSetup

Dynamic Memory management uninitialized (see CS_OPT_MEM)

UnsupportedVersion

Unsupported Version (bindings)

IrrelevantDataInDiet

Access irrelevant data in “diet” engine

IrrelevantDataInSkipData

Access irrelevant data for “data” instruction in SKIPDATA Mode

UnsupportedX86Att

X86 AT&T syntax is unsupported (opt-out at compile time)

UnsupportedX86Intel

X86 Intel syntax is unsupported (opt-out at compile time)

UnsupportedX86Masm

X86 MASM syntax is unsupported (opt-out at compile time)

UnknownCapstoneError

An unknown error not equal to a CapstoneError

InvalidM68kBitfieldRegister

Invalid M68K bitfield register

CustomError(&'static str)

Error with a custom message

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.