Enum itm_decode::DecoderError[][src]

pub enum DecoderError {
    InvalidHeader(u8),
    InvalidHardwarePacket {
        disc_id: u8,
        payload: Vec<u8>,
    },
    InvalidHardwareDisc {
        disc_id: u8,
        size: usize,
    },
    InvalidExceptionTrace {
        exception: u16,
        function: u8,
    },
    InvalidPCSampleSize {
        payload: Vec<u8>,
    },
    InvalidGTS2Size {
        payload: Vec<u8>,
    },
    InvalidSyncSize(usize),
}

A header or payload byte failed to be decoded. The state of the decoder is now in an unknown state and manual intervention is required.

Variants

InvalidHeader(u8)

Header is invalid and cannot be decoded.

InvalidHardwarePacket

The type discriminator ID in the hardware source packet header is invalid or the associated payload is of wrong size.

Fields of InvalidHardwarePacket

disc_id: u8

The discriminator ID. Potentially invalid.

payload: Vec<u8>

Associated payload. Potentially invalid length. MSB, BE.

InvalidHardwareDisc

The type discriminator ID in the hardware source packet header is invalid.

Fields of InvalidHardwareDisc

disc_id: u8

The discriminator ID. Potentially invalid.

size: usize

Associated payload length.

InvalidExceptionTrace

An exception trace packet refers to an invalid action or an invalid exception number.

Fields of InvalidExceptionTrace

exception: u16

The exception number.

function: u8

Numerical representation of the function associated with the exception number.

InvalidPCSampleSize

The payload length of a PCSample packet is invalid.

Fields of InvalidPCSampleSize

payload: Vec<u8>

The payload constituting the PC value, of invalid size. MSB, BE.

InvalidGTS2Size

The GlobalTimestamp2 packet does not contain a 48-bit or 64-bit timestamp.

Fields of InvalidGTS2Size

payload: Vec<u8>

The payload constituting the timestamp, of invalid size. MSB, BE.

InvalidSyncSize(usize)

The number of zeroes in the Synchronization packet is less than 47.

Trait Implementations

impl Clone for DecoderError[src]

impl Debug for DecoderError[src]

impl PartialEq<DecoderError> for DecoderError[src]

impl StructuralPartialEq for DecoderError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.