Enum xml::writer::Error [] [src]

pub enum Error {
    Io(Error),
    DocumentStartAlreadyEmitted,
    LastElementNameNotAvailable,
    EndElementNameIsNotEqualToLastStartElementName,
    EndElementNameIsNotSpecified,
}
[]

An error which may be returned by XmlWriter when writing XML events.

Variants

Io

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

impl From<Error> for EmitterError

fn from(err: Error) -> EmitterError

impl Display for EmitterError

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Debug for EmitterError

fn fmt(&self, __arg_0: &mut Formatter) -> Result