Skip to main content

ErrorKind

Enum ErrorKind 

Source
pub enum ErrorKind {
Show 21 variants NoEnvironment, NoCpu, CpuAlreadySet { current: String, }, UnknownCpu { name: String, suggestions: Vec<String>, }, Overlap { at: String, marked: String, }, PartialEquivalent { range: String, marked: String, }, InvalidLabel { label: String, reason: &'static str, }, InvalidArgument { value: String, reason: &'static str, }, UnknownSpace { name: String, suggestion: Option<String>, }, NothingMapped { at: String, }, InvalidEquivalent, AlreadyClassified { at: String, marked: String, covering: String, cleared: u64, asked: u64, }, Io { message: String, }, CpuStillNeeded { cpu: String, decoded: u64, }, LabelTaken { label: String, holder: String, }, LocalLabelTaken { label: String, holder: String, }, GeneratedLabel { label: String, }, RangeDoesNotDecode { count: usize, reasons: Vec<String>, }, RangeCoversVectors { vectors: Vec<String>, }, BarrierStopsAuto { at: String, barrier: String, marked: String, }, RangeSwallowsTargets { targets: Vec<String>, omitted: usize, first_target: String, first_source: String, sources: usize, },
}
Expand description

The facts of a refused command, rendered elsewhere.

Variants§

§

NoEnvironment

File access needed, none attached.

§

NoCpu

A disassembly command with no CPU selected.

§

CpuAlreadySet

set_cpu while a CPU is selected.

Fields

§current: String
§

UnknownCpu

A CPU with no built-in driver.

Fields

§name: String
§suggestions: Vec<String>
§

Overlap

A range overlapping an existing classification.

Fields

§marked: String
§

PartialEquivalent

An unmap cutting a longer classification.

Fields

§range: String
§marked: String
§

InvalidLabel

An illegal assembler symbol.

Fields

§label: String
§reason: &'static str
§

InvalidArgument

A value the command cannot take.

Fields

§value: String
§reason: &'static str
§

UnknownSpace

An address space this database lacks.

Fields

§name: String
§suggestion: Option<String>
§

NothingMapped

A classify target with no mapped byte.

Fields

§

InvalidEquivalent

A classification the bytes cannot take.

§

AlreadyClassified

A mark over already-classified bytes.

Fields

§marked: String
§covering: String
§cleared: u64

Bytes the unblocking clear takes.

§asked: u64

Bytes the command asked about.

§

Io

A filesystem failure.

Fields

§message: String
§

CpuStillNeeded

A cleared CPU with decoded bytes.

Fields

§decoded: u64
§

LabelTaken

A label another address already holds.

Fields

§label: String
§holder: String
§

LocalLabelTaken

A local label reused inside one routine.

Fields

§label: String
§holder: String
§

GeneratedLabel

A label equal to the generated form.

Fields

§label: String
§

RangeDoesNotDecode

A range that decodes badly.

Fields

§count: usize
§reasons: Vec<String>
§

RangeCoversVectors

A classify range covering live vectors.

Fields

§vectors: Vec<String>
§

BarrierStopsAuto

An auto-disassemble root under a barrier.

Fields

§barrier: String
§marked: String
§

RangeSwallowsTargets

A classify range covering branch targets.

Fields

§targets: Vec<String>

addr (from callers) phrases, at most four.

§omitted: usize
§first_target: String
§first_source: String
§sources: usize

Trait Implementations§

Source§

impl Debug for ErrorKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<ErrorKind> for CommandError

Source§

fn from(what: ErrorKind) -> Self

Converts to this type from the input type.
Source§

impl Serialize for ErrorKind

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more