pub enum Error {
BufferTooSmall,
UnexpectedEof,
InvalidData,
TypeMismatch,
OutOfRange,
Custom(&'static str),
Unsupported,
}Expand description
Error types that can occur during serialization or deserialization.
Variants§
BufferTooSmall
Buffer is too small for the operation
UnexpectedEof
Unexpected end of data
InvalidData
Invalid data format encountered
TypeMismatch
Type mismatch during deserialization
OutOfRange
Value out of valid range
Custom(&'static str)
Custom error with a static message
Unsupported
Unsupported operation
Trait Implementations§
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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