pub enum Error {
Show 14 variants
BufferTooSmall(BufferTooSmall),
BufferNotConsumed {
trailing: usize,
},
InvalidFourCC {
fourcc: u32,
},
InvalidStartTagLen {
len: u16,
},
InvalidStartTag {
tag: u16,
},
InvalidGroup {
group: u32,
},
UnsupportedVersion {
version: u16,
},
UnsupportedProtocol {
protocol: u16,
},
InvalidPadding {
padding: u32,
},
UnsupportedObisId {
id: u32,
},
InvalidWordcount {
wordcount: u8,
},
UnsupportedCommandClass {
class: u8,
},
UnsupportedOpcode {
opcode: u32,
},
PayloadTooLarge {
len: usize,
},
}Expand description
Errors returned from SMA speedwire protocol processing.
Variants§
BufferTooSmall(BufferTooSmall)
The provided buffer is too small.
BufferNotConsumed
The provided buffer contained unexpected trailing bytes and was not completely deserialized.
InvalidFourCC
The processed packet starts with an invalid SMA FOURCC value.
InvalidStartTagLen
The packet header length is incorrect.
InvalidStartTag
The start tag value in the common packet header is invalid.
InvalidGroup
The group value in the common packet header is invalid.
UnsupportedVersion
The protocol version as indicated in the common packet header is unsupported.
UnsupportedProtocol
The sub-protocol type as indicated in the common packet header is unsupported.
InvalidPadding
The padding bytes are not all zero.
UnsupportedObisId
The OBIS ID encountered is unsupported.
InvalidWordcount
The wordcount field in the inverter sub-protocol header data length is invalid.
UnsupportedCommandClass
The class field of this message has an unsupported value.
UnsupportedOpcode
The opcode of this message has an unsupported value.
PayloadTooLarge
The payload of a packet exceeds the maximum supported length.