pub enum SerializeError {
BufferTooSmall,
TypeMismatch,
InvalidData,
}Expand description
Error that can occur during serialization
Uses an enum instead of String for better performance in no_std environments
and to enable defmt logging support in Embassy.
Variants§
BufferTooSmall
Output buffer is too small for the serialized data
TypeMismatch
Type mismatch in serializer (wrong type passed)
InvalidData
Invalid data that cannot be serialized
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
Available on crate feature std only.
impl Display for SerializeError
Available on crate feature
std only.Source§impl Error for SerializeError
Available on crate feature std only.
impl Error for SerializeError
Available on crate feature
std only.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