[][src]Enum ihex::ReaderError

pub enum ReaderError {
    MissingStartCode,
    RecordTooShort,
    RecordTooLong,
    RecordNotEvenLength,
    ContainsInvalidCharacters,
    ChecksumMismatch(u8u8),
    PayloadLengthMismatch,
    UnsupportedRecordType(u8),
    InvalidLengthForType,
}

Variants

MissingStartCode

The record provided does not begin with a ':'.

RecordTooShort

The record provided is shorter than the smallest valid.

RecordTooLong

The record provided exceeds the maximum size (255b payload).

RecordNotEvenLength

The record is not an even number of bytes.

ContainsInvalidCharacters

The record is not all hexadecimal characters.

ChecksumMismatch(u8u8)

The checksum did not match.

PayloadLengthMismatch

The record is not the length it claims.

UnsupportedRecordType(u8)

The record type is not supported.

InvalidLengthForType

The payload length does not match the record type.

Trait Implementations

impl Clone for ReaderError[src]

impl Copy for ReaderError[src]

impl Debug for ReaderError[src]

impl Display for ReaderError[src]

impl Eq for ReaderError[src]

impl Error for ReaderError[src]

impl Hash for ReaderError[src]

impl PartialEq<ReaderError> for ReaderError[src]

impl StructuralEq for ReaderError[src]

impl StructuralPartialEq for ReaderError[src]

Auto Trait Implementations

impl RefUnwindSafe for ReaderError

impl Send for ReaderError

impl Sync for ReaderError

impl Unpin for ReaderError

impl UnwindSafe for ReaderError

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> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.