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>)
XML document cannot be written to underlying source.
Contains the reference-counted I/O error to make the error type Clone
able.
Fmt(Error)
Some value could not be formatted
Unsupported(Cow<'static, str>)
Serialized type cannot be represented in an XML due to violation of the
XML rules in the final XML document. For example, attempt to serialize
a HashMap<{integer}, ...>
would cause this error because XML name
cannot start from a digit or a hyphen (minus sign). The same result
would occur if 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 to 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 Freeze for SeError
impl !RefUnwindSafe for SeError
impl Send for SeError
impl Sync for SeError
impl Unpin for SeError
impl !UnwindSafe 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