pub enum SerializationError {
BufferTooSmall,
InvalidData,
RepeatitiveError {
data: u32,
},
InvalidFieldBits {
field_name: &'static str,
},
BitWriteError {
err: BitWriterError,
},
UnsupportedFieldKind,
FieldNotFound {
field_id: &'static str,
},
CodecError {
source: CodecError,
},
}Expand description
Issues encountered while serializing a PGN into a buffer.
Variants§
BufferTooSmall
Provided buffer is too small for the payload.
InvalidData
Data does not satisfy the descriptor constraints.
RepeatitiveError
Code generator detected a malformed repeating PGN definition.
InvalidFieldBits
Field length is not an acceptable bit multiple.
BitWriteError
Failed while writing bits into the output buffer.
Fields
§
err: BitWriterErrorUnsupportedFieldKind
Field type not supported by the serialization engine.
FieldNotFound
Expected field was missing from the domain structure.
CodecError
Generic conversion error bubbling up from the codec module.
Fields
§
source: CodecErrorTrait Implementations§
Source§impl Debug for SerializationError
impl Debug for SerializationError
Auto Trait Implementations§
impl Freeze for SerializationError
impl RefUnwindSafe for SerializationError
impl Send for SerializationError
impl Sync for SerializationError
impl Unpin for SerializationError
impl UnsafeUnpin for SerializationError
impl UnwindSafe for SerializationError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more