pub enum Error {
Io(Error),
DocumentStartAlreadyEmitted,
LastElementNameNotAvailable,
EndElementNameIsNotEqualToLastStartElementName,
EndElementNameIsNotSpecified,
}
Expand description
An error which may be returned by XmlWriter
when writing XML events.
Variants§
Io(Error)
An I/O error occured in the underlying Write
instance.
DocumentStartAlreadyEmitted
Document declaration has already been written to the output stream.
LastElementNameNotAvailable
The name of the last opening element is not available.
EndElementNameIsNotEqualToLastStartElementName
The name of the last opening element is not equal to the name of the provided closing element.
EndElementNameIsNotSpecified
End element name is not specified when it is needed, for example, when automatic closing is not enabled in configuration.
Trait Implementations§
source§impl Debug for EmitterError
impl Debug for EmitterError
source§impl Display for EmitterError
impl Display for EmitterError
source§impl Error for EmitterError
impl Error for EmitterError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<Error> for EmitterError
impl From<Error> for EmitterError
source§fn from(err: Error) -> EmitterError
fn from(err: Error) -> EmitterError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for EmitterError
impl Send for EmitterError
impl Sync for EmitterError
impl Unpin for EmitterError
impl !UnwindSafe for EmitterError
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