Enum yatlv::Error [−][src]
pub enum Error { IncompleteFrameFormat, InvalidFrameFormat(u32), IncompleteFrameFieldCount, IncompleteFieldTagOrLength, IncompleteFieldValue(usize, usize), IncompatibleFieldLength(usize), IncompatibleFieldValue, UnexpectedData, }
Expand description
Library Error Type
Variants
The frame must start with a single format byte.
InvalidFrameFormat(u32)
The frame format must be one of the recognized formats (currently only, 0x01
).
The frame must have a four byte field-count that indicates the number fields in the frame (encoded as big-endian u32)
Each field must start with a two byte tag (big-endian u16) and a four byte length (big-endian u32).
Each field must have a value that is field-length long This error as expected and actual lengths.
IncompatibleFieldLength(usize)
When converting a field to an expected type of value the field length must be compatible with the expected value type.
When converting a field into an expected type the value of the field must be compatible with the expected type.
Once all the fields have been read there should be no more data in the frame.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error