pub enum ErrorKind {
Show 26 variants
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,
}
Expand description
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.