pub enum XmlValueSerializerError {
Custom(String),
UnexpectedSerialize(Unexpected),
}
Expand description
Error type for serializing XML values.
Variants§
Custom(String)
Error for when a custom error occurs during serialization.
UnexpectedSerialize(Unexpected)
Error for when an unexpected serialization occurs.
Trait Implementations§
Source§impl Debug for XmlValueSerializerError
impl Debug for XmlValueSerializerError
Source§impl Display for XmlValueSerializerError
impl Display for XmlValueSerializerError
Source§impl Error for XmlValueSerializerError
impl Error for XmlValueSerializerError
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 Error for XmlValueSerializerError
impl Error for XmlValueSerializerError
Source§fn unexpected_serialize(unexpected: Unexpected) -> Self
fn unexpected_serialize(unexpected: Unexpected) -> Self
Error for when a serializer expects a certain type, but it is not.
Auto Trait Implementations§
impl Freeze for XmlValueSerializerError
impl RefUnwindSafe for XmlValueSerializerError
impl Send for XmlValueSerializerError
impl Sync for XmlValueSerializerError
impl Unpin for XmlValueSerializerError
impl UnwindSafe for XmlValueSerializerError
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