pub enum SerializeError {
BufferTooSmall,
StorageBufferTooSmall,
LengthOverflow,
DynamicTypeUnderflow,
DynamicTypeOverflow,
}
Expand description
An error while serializing a SOME/IP payload type.
Variants§
BufferTooSmall
The payload slice has too few bytes to parse the SOME/IP payload type.
StorageBufferTooSmall
The capacity of the storage buffer is exceeded.
LengthOverflow
The length of a dynamic structure is bigger than the length field can encode.
DynamicTypeUnderflow
The minimum capacity of a dynamic type is subceeded.
DynamicTypeOverflow
The maximum capacity of a dynamic type is exceeded.
Trait Implementations§
Source§impl Clone for SerializeError
impl Clone for SerializeError
Source§fn clone(&self) -> SerializeError
fn clone(&self) -> SerializeError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SerializeError
impl Debug for SerializeError
Source§impl Display for SerializeError
impl Display for SerializeError
Source§impl Error for SerializeError
impl Error for SerializeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for SerializeError
impl PartialEq for SerializeError
impl Copy for SerializeError
impl Eq for SerializeError
impl StructuralPartialEq for SerializeError
Auto Trait Implementations§
impl Freeze for SerializeError
impl RefUnwindSafe for SerializeError
impl Send for SerializeError
impl Sync for SerializeError
impl Unpin for SerializeError
impl UnwindSafe for SerializeError
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