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
sourceimpl Debug for EmitterError
impl Debug for EmitterError
sourceimpl Display for EmitterError
impl Display for EmitterError
sourceimpl Error for EmitterError
impl Error for EmitterError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourceimpl From<Error> for EmitterError
impl From<Error> for EmitterError
sourcefn from(err: Error) -> EmitterError
fn from(err: Error) -> EmitterError
Performs the conversion.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more