Enum ser_write_json::ser::Error
source · #[non_exhaustive]pub enum Error<E> {
Writer(E),
InvalidKeyType,
Utf8Encode,
FormatError,
SerializeError(String),
}Expand description
Serialization error
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Writer(E)
Underlying writer error
InvalidKeyType
Invalid type for a JSON object key
Utf8Encode
Available on crate features
std or alloc only.Error encoding UTF-8 string with pass-through bytes encoder
FormatError
Error formatting a collected a string
SerializeError(String)
Available on crate features
std or alloc only.An error passed down from a serde::ser::Serialize implementation
Trait Implementations§
source§impl<E: PartialEq> PartialEq for Error<E>
impl<E: PartialEq> PartialEq for Error<E>
impl<E: Eq> Eq for Error<E>
impl<E> StructuralPartialEq for Error<E>
Auto Trait Implementations§
impl<E> Freeze for Error<E>where
E: Freeze,
impl<E> RefUnwindSafe for Error<E>where
E: RefUnwindSafe,
impl<E> Send for Error<E>where
E: Send,
impl<E> Sync for Error<E>where
E: Sync,
impl<E> Unpin for Error<E>where
E: Unpin,
impl<E> UnwindSafe for Error<E>where
E: UnwindSafe,
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