pub enum EncodeError {
SizeOverflow {
packet: &'static str,
field: &'static str,
size: usize,
maximum_size: usize,
},
CountOverflow {
packet: &'static str,
field: &'static str,
count: usize,
maximum_count: usize,
},
InvalidScalarValue {
packet: &'static str,
field: &'static str,
value: u64,
maximum_value: u64,
},
InvalidArrayElementSize {
packet: &'static str,
field: &'static str,
size: usize,
expected_size: usize,
element_index: usize,
},
InconsistentConditionValue {
packet: &'static str,
field: &'static str,
},
}
Expand description
Type of serialization errors.
Variants§
SizeOverflow
CountOverflow
InvalidScalarValue
InvalidArrayElementSize
Fields
InconsistentConditionValue
Trait Implementations§
Source§impl Debug for EncodeError
impl Debug for EncodeError
Source§impl Display for EncodeError
impl Display for EncodeError
Source§impl Error for EncodeError
impl Error for EncodeError
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 EncodeError
impl PartialEq for EncodeError
impl Eq for EncodeError
impl StructuralPartialEq for EncodeError
Auto Trait Implementations§
impl Freeze for EncodeError
impl RefUnwindSafe for EncodeError
impl Send for EncodeError
impl Sync for EncodeError
impl Unpin for EncodeError
impl UnwindSafe for EncodeError
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