Enum PtErrorCode

Source
#[repr(i32)]
pub enum PtErrorCode {
Show 28 variants Ok = 0, Internal = 1, Invalid = 2, Nosync = 3, BadOpc = 4, BadPacket = 5, BadContext = 6, Eos = 7, BadQuery = 8, Nomem = 9, BadConfig = 10, Noip = 11, IpSuppressed = 12, Nomap = 13, BadInsn = 14, NoTime = 15, NoCbr = 16, BadImage = 17, BadLock = 18, NotSupported = 19, RetstackEmpty = 20, BadRetcomp = 21, BadStatusUpdate = 22, NoEnable = 23, EventIgnored = 24, Overflow = 25, BadFile = 26, BadCpu = 27,
}

Variants§

§

Ok = 0

No error. Everything is OK

§

Internal = 1

Internal decoder error

§

Invalid = 2

Invalid argument

§

Nosync = 3

Decoder out of sync

§

BadOpc = 4

Unknown opcode

§

BadPacket = 5

Unknown payload

§

BadContext = 6

Unexpected packet context

§

Eos = 7

Decoder reached end of trace stream

§

BadQuery = 8

No packet matching the query to be found

§

Nomem = 9

Decoder out of memory

§

BadConfig = 10

Bad configuration

§

Noip = 11

There is no IP

§

IpSuppressed = 12

The IP has been suppressed

§

Nomap = 13

There is no memory mapped at the requested address

§

BadInsn = 14

An instruction could not be decoded

§

NoTime = 15

No wall-clock time is available

§

NoCbr = 16

No core:bus ratio available

§

BadImage = 17

Bad traced image

§

BadLock = 18

A locking error

§

NotSupported = 19

The requested feature is not supported

§

RetstackEmpty = 20

The return address stack is empty

§

BadRetcomp = 21

A compressed return is not indicated correctly by a taken branch

§

BadStatusUpdate = 22

The current decoder state does not match the state in the trace

§

NoEnable = 23

The trace did not contain an expected enabled event

§

EventIgnored = 24

An event was ignored

§

Overflow = 25

Something overflowed

§

BadFile = 26

A file handling error

§

BadCpu = 27

Unknown cpu

Trait Implementations§

Source§

impl Clone for PtErrorCode

Source§

fn clone(&self) -> PtErrorCode

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PtErrorCode

Source§

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

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

impl From<PtErrorCode> for PtError

Source§

fn from(value: PtErrorCode) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for PtErrorCode

Source§

fn eq(&self, other: &PtErrorCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<i32> for PtErrorCode

Source§

type Error = TryFromPrimitiveError<PtErrorCode>

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

fn try_from(number: i32) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for PtErrorCode

Source§

impl Copy for PtErrorCode

Source§

impl StructuralPartialEq for PtErrorCode

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.