pub enum SeError {
Custom(String),
Io(Arc<Error>),
Fmt(Error),
Unsupported(Cow<'static, str>),
NonEncodable(Utf8Error),
}Available on crate feature
serialize only.Expand description
Serialization error.
Variants§
Custom(String)
Serde custom error.
Io(Arc<Error>)
An XML document cannot be written to the underlying source.
Contains a reference-counted I/O error to make the error type Cloneable.
Fmt(Error)
Some value could not be formatted.
Unsupported(Cow<'static, str>)
The serialized type cannot be represented in XML due to a violation of
the XML rules in the final XML document. For example, an attempt to
serialize a HashMap<{integer}, ...> would cause this error because an
XML name cannot start with a digit or a hyphen (minus sign). The same
result would occur if the map key is a complex type that cannot be
serialized as a primitive type (i.e. string, char, bool, unit struct or
unit variant).
NonEncodable(Utf8Error)
Some value could not be turned into UTF-8.
Trait Implementations§
Source§impl Error for SeError
impl Error for SeError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for SeError
impl !UnwindSafe for SeError
impl Freeze for SeError
impl Send for SeError
impl Sync for SeError
impl Unpin for SeError
impl UnsafeUnpin for SeError
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