[][src]Enum async_resol_vbus::specification_file::ErrorKind

pub enum ErrorKind {
    InvalidFileHeader,
    InvalidFileHeaderTotalLength,
    InvalidFileHeaderChecksumA,
    InvalidFileHeaderChecksumB,
    InvalidFileHeaderDataVersion,
    InvalidFileHeaderSpecificationOffset,
    InvalidSpecificationTextTable,
    InvalidSpecificationLocalizedTextTable,
    InvalidSpecificationUnitTable,
    InvalidSpecificationDeviceTemplateTable,
    InvalidSpecificationPacketTemplateTable,
    InvalidTextStringOffset,
    InvalidTextContent,
    InvalidLocalizedTextTextIndexEn,
    InvalidLocalizedTextTextIndexDe,
    InvalidLocalizedTextTextIndexFr,
    InvalidUnitUnitFamilyId,
    InvalidUnitUnitCodeTextIndex,
    InvalidUnitUnitTextTextIndex,
    InvalidDeviceTemplateNameLocalizedTextIndex,
    InvalidPacketTemplateFieldTable,
    InvalidPacketTemplateFieldIdTextIndex,
    InvalidPacketTemplateFieldNameLocalizedTextIndex,
    InvalidPacketTemplateFieldUnitId,
    InvalidPacketTemplateFieldTypeId,
    InvalidPacketTemplateFieldPartTable,
}

A list of errors that can occur if the VSF1 data cannot be parsed.

Variants

InvalidFileHeader

The data is too small for a valid FILEHEADER.

InvalidFileHeaderTotalLength

The data length does not match the "TotalLength" field of the FILEHEADER.

InvalidFileHeaderChecksumA

The data does not match the "ChecksumA" field of the FILEHEADER.

InvalidFileHeaderChecksumB

The data does not match the "ChecksumB" field of the FILEHEADER.

InvalidFileHeaderDataVersion

The "DataVersion" field of the FILEHEADER is not supported.

InvalidFileHeaderSpecificationOffset

The "SpecificationOffset" of the FILEHEADER is out-of-bounds.

InvalidSpecificationTextTable

The "Text{Count,TableOffset}" fields of the SPECIFICATION block are out-of-bounds.

InvalidSpecificationLocalizedTextTable

The "LocalizedText{Count,TableOffset}" fields of the SPECIFICATION block are out-of-bounds.

InvalidSpecificationUnitTable

The "Unit{Count,TableOffset}" fields of the SPECIFICATION block are out-of-bounds.

InvalidSpecificationDeviceTemplateTable

The "DeviceTemplate{Count,TableOffset}" fields of the SPECIFICATION block are out-of-bounds.

InvalidSpecificationPacketTemplateTable

The "PacketTemplate{Count,TableOffset}" fields of the SPECIFICATION block are out-of-bounds.

InvalidTextStringOffset

The "StringOffset" field of a TEXT block is out-of-bounds.

InvalidTextContent

The contents of a TEXT is out-of-bounds.

InvalidLocalizedTextTextIndexEn

The "TextIndexEN" field of a LOCALIZEDTEXT block is out-of-bounds.

InvalidLocalizedTextTextIndexDe

The "TextIndexDE" field of a LOCALIZEDTEXT block is out-of-bounds.

InvalidLocalizedTextTextIndexFr

The "TextIndexFR" field of a LOCALIZEDTEXT block is out-of-bounds.

InvalidUnitUnitFamilyId

The "UnitFamilyId" field of a UNIT block is out-of-bounds.

InvalidUnitUnitCodeTextIndex

The "UnitCodeTextIndex" field of a UNIT block is out-of-bounds.

InvalidUnitUnitTextTextIndex

The "UnitTextTextIndex" field of a UNIT block is out-of-bounds.

InvalidDeviceTemplateNameLocalizedTextIndex

The "NameLocalizedTextIndex" field of a DEVICETEMPLATE block is out-of-bounds.

InvalidPacketTemplateFieldTable

The "Field{Count,TableOffset}" fields of a PACKETTEMPLATE block are out-of-bounds.

InvalidPacketTemplateFieldIdTextIndex

The "IdTextIndex" of a PACKETTEMPLATEFIELD block is out-of-bounds.

InvalidPacketTemplateFieldNameLocalizedTextIndex

The "NameLocalizedTextIndex" of a PACKETTEMPLATEFIELD block is out-of-bounds.

InvalidPacketTemplateFieldUnitId

The "UnitId" of a PACKETTEMPLATEFIELD block is out-of-bounds.

InvalidPacketTemplateFieldTypeId

The "TypeId" of a PACKETTEMPLATEFIELD block is out-of-bounds.

InvalidPacketTemplateFieldPartTable

The "Part{Count,TableOffset}" of a PACKETTEMPLATEFIELD is out-of-bounds.

Trait Implementations

impl Clone for ErrorKind[src]

impl Copy for ErrorKind[src]

impl Debug for ErrorKind[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> 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, 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.